Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: gdb@sourceware.org
Subject: [GDB/MI] missing token in "stopped" output after -exec-run?
Date: Wed, 21 May 2008 03:59:00 -0000	[thread overview]
Message-ID: <20080521035924.GA4148@adacore.com> (raw)

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


             reply	other threads:[~2008-05-21  3:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-21  3:59 Joel Brobecker [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080521035924.GA4148@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox