4
MESSAGES="Please type 'run' inside gdb session to invoke genkeystroke.
6
After execution, close this X terminal."
8
$PREFERABLE_XTERM -e sh \
9
-c "tty > /tmp/name_of_xterm_ptty &&
10
echo -e \"$MESSAGES\" && sleep 100000" &
12
echo "tty `cat /tmp/name_of_xterm_ptty`" > .chewing-gdb-macro
13
echo "set args test.txt" >> .chewing-gdb-macro
14
libtool --mode=execute gdb -x .chewing-gdb-macro genkeystroke
15
rm -f .chewing-gdb-macro