From: "Marc Khouzam" <marc.khouzam@ericsson.com>
To: "Nick Roberts" <nickrob@snap.net.nz>
Cc: "Vladimir Prus" <vladimir@codesourcery.com>, <gdb@sources.redhat.com>
Subject: RE: Re: MI *stopped event with CLI commands
Date: Mon, 12 Jan 2009 03:11:00 -0000 [thread overview]
Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BEED@ecamlmw720.eamcs.ericsson.se> (raw)
In-Reply-To: <18761.60118.104115.85983@kahikatea.snap.net.nz>
Volodya,
any opinion on this?
I could switch to async mode to solve this problem, but
I'm hesitant to do so because it may have side-effects to
DSF-GDB that I may not be aware of. Except for this bug,
I'm not too sure on the advantages of async-mode for DSF-GDB.
So, if you feel this bug can be fixed, I will probably wait
for the fix, instead of risking going to async-mode.
Thanks for your input
Marc
-----Original Message-----
From: Nick Roberts [mailto:nickrob@snap.net.nz]
Sent: Thu 12/18/2008 1:16 AM
To: Marc Khouzam
Cc: Vladimir Prus; gdb@sources.redhat.com
Subject: RE: Re: MI *stopped event with CLI commands
> > set target-async on
> >
> > first, you do get the full information. Perhaps this should be the default
> > for targets which can run asynchronously.
>
> Vladimir Prus wrote:
> >
> > Probably. Though it does not change the fact that *stopped without details
> > sounds like a bug. I'll take a look, though it might take a few days.
>
> I looked into the fact that *stopped worked properly with async on but not
> with async off (thanks Nick.) My understanding of GDB internals is quite
> limited, but I believe what is happening is the following:
>
> When issuing a command that resumes the inferior, say -exec-continue or
> continue, we eventually end up in method proceed(...) of infrun.c On the
> call chain to that method, if the command that resumed the inferior was a
> CLI command (e.g. continue) the uiout structure has been forced to be the
> CLI uiout; this makes sense to me since we want any output of the CLI
> command to be formatted as CLI output. However, once the inferior stops,
> the output that follows should no longer be in CLI format, I believe. So,
> after the inferior is resumed, we should probably go back to the MI uiout.
>...
I imagine that you can get MI-like output from a CLI execution command by
switching uiout at critical places but asynchronous mode seems to me to
be the natural way to do it as it decouples GDB output from the command
that started the execution, be it MI or CLI.
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2009-01-12 3:11 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
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 [this message]
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=6D19CA8D71C89C43A057926FE0D4ADAA04E1BEED@ecamlmw720.eamcs.ericsson.se \
--to=marc.khouzam@ericsson.com \
--cc=gdb@sources.redhat.com \
--cc=nickrob@snap.net.nz \
--cc=vladimir@codesourcery.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