Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Remote protocol extension - detaching
@ 2002-07-31 11:37 Daniel Jacobowitz
  2002-07-31 12:19 ` William A. Gatliff
  2002-08-04 11:20 ` Andrew Cagney
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2002-07-31 11:37 UTC (permalink / raw)
  To: gdb

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?

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Remote protocol extension - detaching
  2002-07-31 11:37 Remote protocol extension - detaching Daniel Jacobowitz
@ 2002-07-31 12:19 ` William A. Gatliff
  2002-07-31 12:24   ` Daniel Jacobowitz
  2002-08-04 11:20 ` Andrew Cagney
  1 sibling, 1 reply; 5+ messages in thread
From: William A. Gatliff @ 2002-07-31 12:19 UTC (permalink / raw)
  To: gdb

... or how about just adding some arguments to the detach packet?

b.g.

On Wed, Jul 31, 2002 at 02:37:02PM -0400, Daniel Jacobowitz 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?
> 
> -- 
> Daniel Jacobowitz                           Carnegie Mellon University
> MontaVista Software                         Debian GNU/Linux Developer

-- 
Bill Gatliff
bgat@billgatliff.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Remote protocol extension - detaching
  2002-07-31 12:19 ` William A. Gatliff
@ 2002-07-31 12:24   ` Daniel Jacobowitz
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2002-07-31 12:24 UTC (permalink / raw)
  To: William A. Gatliff; +Cc: gdb

I'm not sure whether we can do that in a backwards-compatible way with
existing stubs.  It's a good idea, though - I like it :)

On Wed, Jul 31, 2002 at 02:19:40PM -0500, William A. Gatliff wrote:
> ... or how about just adding some arguments to the detach packet?
> 
> b.g.
> 
> On Wed, Jul 31, 2002 at 02:37:02PM -0400, Daniel Jacobowitz 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?
> > 
> > -- 
> > Daniel Jacobowitz                           Carnegie Mellon University
> > MontaVista Software                         Debian GNU/Linux Developer
> 
> -- 
> Bill Gatliff
> bgat@billgatliff.com
> 

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Remote protocol extension - detaching
  2002-07-31 11:37 Remote protocol extension - detaching Daniel Jacobowitz
  2002-07-31 12:19 ` William A. Gatliff
@ 2002-08-04 11:20 ` Andrew Cagney
  2002-08-04 12:01   ` Daniel Jacobowitz
  1 sibling, 1 reply; 5+ messages in thread
From: Andrew Cagney @ 2002-08-04 11:20 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

> 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.

Andrew

(k makes me think of kill, but d is taken ...)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Remote protocol extension - detaching
  2002-08-04 11:20 ` Andrew Cagney
@ 2002-08-04 12:01   ` Daniel Jacobowitz
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2002-08-04 12:01 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-08-04 19:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-31 11:37 Remote protocol extension - detaching 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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox