From: Keith Seitz <keiths@cygnus.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: <gdb@sources.redhat.com>
Subject: Re: [RFC] Inferior stop events
Date: Thu, 14 Jun 2001 08:13:00 -0000 [thread overview]
Message-ID: <Pine.GSO.4.33.0106140802230.27055-100000@makita.cygnus.com> (raw)
In-Reply-To: <Pine.SUN.3.91.1010614110036.972L-100000@is>
On Thu, 14 Jun 2001, Eli Zaretskii wrote:
> For the benefit of the GUI-challenged people such as myself: how, if at
> all, is this done now? That is, what does a typical UI for GDB do to
> tell the user why did the debuggee stopped?
I can only speak for Insight. We use the call_command_hook, and we assume
that the target will run if the command's class is class_run or
class_trace.
Before calling the actual function bound to the command, we run a script
to tell the rest of the UI that we are about to be "busy". When the
command is done (and the function returns), we tell the UI that it is
idle. This tells us that gdb is no longer using the inferior, but it does
not tell us what happened. Did it exit? Hit a breakpoint? Take a signal?
Mind you, some of these things we can sort of figure out. For example,
when the inferior gets a signal, we have a hook which runs in the global
context. At one time, we attempted to parse the output of "info targ". All
kinds of nasty things. IMO this is much cleaner.
Hope this helps.
Keith
next prev parent reply other threads:[~2001-06-14 8:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-13 13:45 Keith Seitz
2001-06-14 0:59 ` Eli Zaretskii
2001-06-14 8:13 ` Keith Seitz [this message]
2001-06-14 9:00 ` Eli Zaretskii
2001-06-15 0:10 ` Andrew Cagney
2001-06-15 7:38 ` Keith Seitz
2001-06-15 10:44 ` Elena Zannoni
2001-06-15 10:58 ` Keith Seitz
2001-06-15 13:44 ` Andrew Cagney
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=Pine.GSO.4.33.0106140802230.27055-100000@makita.cygnus.com \
--to=keiths@cygnus.com \
--cc=eliz@is.elta.co.il \
--cc=gdb@sources.redhat.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