From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@ges.redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: Remote protocol extension - detaching
Date: Sun, 04 Aug 2002 12:01:00 -0000 [thread overview]
Message-ID: <20020804190131.GA5937@nevyn.them.org> (raw)
In-Reply-To: <3D4D7068.1060900@ges.redhat.com>
On Sun, Aug 04, 2002 at 02:20:24PM -0400, Andrew Cagney wrote:
> >Right now, the standard behavior for a stub on detach is to wait for the
> >client to reconnect. It would be convenient to have the normal local
> >execution behavior available, also: that is, on detach, resume the
> >application. This could be done with or without leaving the stub running.
> >
> >I'd like to commandeer the 'K' packet for this; 'd' and 'D' are already
> >taken. Anyone have a better suggestion?
>
> ``detach'' could mean too many things here.
>
> - There is GDB detaches from the remote target -- it shuts down the tcp
> connection.
>
> - There is the remote debug agent detaching from the process being debugged.
>
> I'm also wondering how this relates to GDB's target stack and command set.
Yeah. I'm not terribly fond of the overloading of "detach". Worse,
the only thing I could think of was either "set remote detach on" or
"detach -detach", and those are pretty silly. Better suggestions
anyone? Please?
After thinking about William Gatliff's comment, I think 'K' should
serve as an alternate to the 'D' GDB already sends, indicating that
the connection will be closed in a moment and the child should be
resumed (when that happens?).
> Andrew
>
> (k makes me think of kill, but d is taken ...)
Yeah. I used K because it (could) kill the stub - it would cause
gdbserver to exit, probably, because gdbserver isn't set up to process
events with no GDB. Although I could make it do so pretty easily, I
suppose, and that might be more useful... hack, hack...
This would also be useful for kgdb; right now to get this effect you
have to disable all breakpoints, continue, and kill GDB.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2002-08-04 19:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-31 11:37 Daniel Jacobowitz
2002-07-31 12:19 ` William A. Gatliff
2002-07-31 12:24 ` Daniel Jacobowitz
2002-08-04 11:20 ` Andrew Cagney
2002-08-04 12:01 ` Daniel Jacobowitz [this message]
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=20020804190131.GA5937@nevyn.them.org \
--to=drow@mvista.com \
--cc=ac131313@ges.redhat.com \
--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