Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [GDB/MI] missing token in "stopped" output after -exec-run?
@ 2008-05-21  3:59 Joel Brobecker
  2008-05-21  5:05 ` Vladimir Prus
  0 siblings, 1 reply; 6+ messages in thread
From: Joel Brobecker @ 2008-05-21  3:59 UTC (permalink / raw)
  To: gdb

Hello,

I noticed what looks like a change of behavior in MI and I was wondering
if this was intended. From my limited understanding of MI, it does look
like a bug, but it's hard to be sure for someone who's not familiar with
this protocol.

Consider the following program:

    int
    main (void)
    {
    }

Compile it with:

    % gcc -g -o foo foo.c

Then break on main, and run to the breakpoint. Make sure the -exec-run
command has a token. Here is a transcript of my session:

    (gdb) 
    -break-insert -t main
    ^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x08048332",func="main",file="foo.c",fullname="/home/no-backup/brobecke/head-merge/ex/foo.c",line="6",times="0",original-location="main"}
    (gdb) 
    232-exec-run
    232^running
    (gdb) 
    =thread-created,id="1"
    *stopped,reason="breakpoint-hit",disp="del",bkptno="1",thread-id="1",frame={addr="0x08048332",func="main",args=[],file="foo.c",fullname="/home/no-backup/brobecke/head-merge/ex/foo.c",line="6"}

A few weeks ago, the output looked like this:

    232-exec-run
    232^running
    (gdb) 
    232*stopped,reason="breakpoint-hit",disp="del",bkptno="1",thread-id="1",frame={addr="0x08048332",func="main",args=[],file="foo.c",fullname="/home/no-backup/brobecke/head-merge/ex/foo.c",line="6"}
    
The token was preserved.  Is the new behavior intended?

-- 
Joel


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-05-21 17:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-21  3:59 [GDB/MI] missing token in "stopped" output after -exec-run? Joel Brobecker
2008-05-21  5:05 ` Vladimir Prus
2008-05-21  5:24   ` Joel Brobecker
2008-05-21 12:36   ` Daniel Jacobowitz
2008-05-21 12:59     ` Vladimir Prus
2008-05-21 17:22       ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox