From: Nick Roberts <nickrob@snap.net.nz>
To: "Marc Khouzam" <marc.khouzam@ericsson.com>
Cc: <gdb@sourceware.org>
Subject: Re: MI *stopped event with CLI commands
Date: Mon, 15 Dec 2008 06:17:00 -0000 [thread overview]
Message-ID: <18757.63035.269334.203651@kahikatea.snap.net.nz> (raw)
In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BEC8@ecamlmw720.eamcs.ericsson.se>
> with the latest MI changes, when running in MI mode, a *stopped event is issued whenever
> the inferior stops, even if the last command was a CLI command.
> However, the stopped event is bare if the command is a CLI command.
>
> *stopped
> instead of
> *stopped,reason="breakpoint-hit",disp="keep",bkptno="1",thread-id="1",
> stopped-threads="all",frame={addr="0x08048415",func="main",args=[],file="c.cc",fullname="c.cc",line="5"}
>
> Was this intended? And if so, what should a frontend do in this case?
> We can parse the CLI output or send MI commands to get the info...
> However, it seems to me that having to do that, defeats the purpose of having
> the *stopped event after CLI commands.
>
> Wouldn't be nice if the stopped event always had the full information?
If you do:
set target-async on
first, you do get the full information. Perhaps this should be the default
for targets which can run asynchronously.
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2008-12-15 6:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-15 4:20 Marc Khouzam
2008-12-15 6:17 ` Nick Roberts [this message]
2008-12-15 6:46 ` Vladimir Prus
2008-12-18 3:30 ` Marc Khouzam
2008-12-18 6:17 ` Nick Roberts
2009-01-12 3:11 ` Marc Khouzam
2009-01-12 11:36 ` Nick Roberts
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=18757.63035.269334.203651@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gdb@sourceware.org \
--cc=marc.khouzam@ericsson.com \
/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