[patch] Fix testsuite annotate-quit race (PR 544)

Nick Roberts nickrob@snap.net.nz
Mon Mar 24 00:07:00 GMT 2008


 > Weird, it didn't break in my Debian emacs 22.1+1-3.  I don't
 > understand the difference.

It appears the fact that Emacs uses a dumb terminal was a dumb statement,
or at least a red herring.  I think the cause of the problem is just that
terminals in Emacs don't echo input characters (at least on my (compiled
from CVS) and probably Jan's version:

nickrob@kahikatea:~$ stty -a
speed 38400 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = <undef>; kill = <undef>; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke     ^^^^^

 > Anyway, since the patch is clearly at fault I have reverted it.
 > Nick, Jan, thank you.

With this setting, for some reason this patch means that Gdb doesn't display
the prompt but everything else gets displayed:


nickrob@kahikatea:~$ src-head/build/gdb/gdb
GNU gdb 6.8.50.20080323-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
pwd
Working directory /home/nickrob.
path
Executable and object file path: .:/home/nickrob/bin/:/home/nickrob/bin:.:/home/nickrob/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
quit
nickrob@kahikatea:~$ 

-- 
Nick                                           http://www.inet.net.nz/~nickrob



More information about the Gdb-patches mailing list