Async event loop misses breakpoints
Nick Roberts
nickrob@snap.net.nz
Fri Sep 8 00:13:00 GMT 2006
I've created a test file (mi-async.exp) for my branch nickrob-async-20060513
which sometimes stops at the right places:
runtest mi-async.exp
(gdb)
start
&"start\n"
~"Breakpoint 1 at 0x804840c: file ../.././gdb/testsuite/gdb.mi/basics.c, line 54.\n"
~"Starting program: /home/nickrob/src1/gdb/testsuite/gdb.mi/basics \n"
^running
^done
(gdb)
*stopped,thread-id="0",frame={addr="0x0804840c",func="main",args=[],file="../.././gdb/testsuite/gdb.mi/basics.c",fullname="/home/nickrob/src1/gdb/testsuite/gdb.mi/basics.c",line="54"}
and sometimes doesn't:
make check RUNTESTFLAGS=mi-async.exp
(gdb)
start
&"start\n"
~"Breakpoint 1 at 0x804840c: file ../.././gdb/testsuite/gdb.mi/basics.c, line 54.\n"
~"Starting program: /home/nickrob/src1/gdb/testsuite/gdb.mi/basics \n"
^running
^done
(gdb)
Hello, World!*stopped,reason="exited-normally"
(gdb)
FAIL: gdb.mi/mi-async.exp: Asynchronous response after start command (2)
I've have run simple programs _exactly_ the same way, and again found that
sometimes it stops in main after `start' and sometimes it doesn't.
Does anyone have any ideas as to what the underlying cause of the difference
might be?
--
Nick http://www.inet.net.nz/~nickrob
More information about the Gdb
mailing list