Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@ges.redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: RFC: ``detach remote''
Date: Sun, 11 Aug 2002 13:52:00 -0000	[thread overview]
Message-ID: <20020811205238.GA23632@nevyn.them.org> (raw)
In-Reply-To: <20020811183448.GA19112@nevyn.them.org>

On Sun, Aug 11, 2002 at 02:34:48PM -0400, Daniel Jacobowitz wrote:
> > >One other thorny issue becomes what to do when the user quits or closes
> > >the remote target etc.  Right now GDB offers the "kill" prompt as I
> > >showed above.  For extended-remote that doesn't make a lot of sense to
> > >me... I think that either "disconnect" or a "kill"/"terminate" sequence
> > >makes more sense.  Thoughts?
> > 
> > The sequence is:
> > 
> > (gdb) attach 20856
> > Attaching to program: /home/scratch/GDB/native/gdb/gdb, process 20856
> > 0x41b44a04 in ?? ()
> > (gdb) target core gdb.core
> > A program is being debugged already.  Kill it? (y or n)
> > 
> > In certain situtations, yes that message doesn't make sense.  The 
> > default [y] should still be to do something pretty fatal though. 
> > Perhaphs suggest ``detaching'' first.
> 
> The think is, now it uses kill.  Kill would not close the agent
> session, which is obviously not the desired behavior.  If you want it
> to kill the agent (I think this is reasonable!) then there needs to be
> a command for it other than the ``monitor'' odds-and-ends command, so
> that extended-remote targets will have some obligation to know what to
> do when they receive the kill message.

This whole question put another way:
  Obviously, if you start something with "run", you want to end it with
"kill".

  Obviously, if you start something with "attach", you want to end it
with "detach".

[These are not hard and fast, of course.  You can detach a run process
or kill an attached process.  But you surely see what I mean - they're
logical opposites.]

  If you start something with "target", how do you end it?  I propose
"disconnect".


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-08-11 20:52 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-06 14:00 Daniel Jacobowitz
2002-08-06 22:17 ` Eli Zaretskii
2002-08-07 12:31 ` Andrew Cagney
2002-08-07 12:49   ` Daniel Jacobowitz
2002-08-07 15:31     ` Andrew Cagney
2002-08-08  6:24       ` Daniel Jacobowitz
2002-08-09 10:48         ` Andrew Cagney
2002-08-10 20:01           ` Daniel Jacobowitz
2002-08-11  8:15             ` Andrew Cagney
2002-08-11  9:35               ` Daniel Jacobowitz
2002-08-11  9:42                 ` Andrew Cagney
2002-08-11  9:52                   ` Daniel Jacobowitz
2002-08-11 11:02                 ` Andrew Cagney
2002-08-11 11:34                   ` Daniel Jacobowitz
2002-08-11 13:52                     ` Daniel Jacobowitz [this message]
2002-08-12  7:36                       ` Andrew Cagney
2002-08-12  7:47                         ` Daniel Jacobowitz
2002-08-29 15:07                           ` Daniel Jacobowitz
2002-09-03 14:32                             ` Andrew Cagney
2002-09-03 14:41                               ` Daniel Jacobowitz
2002-09-03 22:04                                 ` Eli Zaretskii
2002-09-03 22:04                               ` Eli Zaretskii
2002-09-03 22:14                               ` Eli Zaretskii
2002-08-12 10:29                         ` Eli Zaretskii

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=20020811205238.GA23632@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=ac131313@ges.redhat.com \
    --cc=gdb-patches@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