Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb@sourceware.org
Subject: Re: target remote-attach?
Date: Fri, 29 Feb 2008 20:29:00 -0000	[thread overview]
Message-ID: <20080229202554.GA7757@caradoc.them.org> (raw)
In-Reply-To: <1204316091.19253.525.camel@localhost.localdomain>

On Fri, Feb 29, 2008 at 12:14:51PM -0800, Michael Snyder wrote:
> Just thinking aloud... we ought to have a sort of "remote-attach"
> command, that would allow us to connect to a remote target when it
> is already in a "run" state.  Right now the initial handshake 
> protocol prevents doing that.
> 
> The target might be waiting to tell gdb "I stopped because of
> a SIGTRAP", or similar, or it might actually be running, and
> need to be stopped via a serial BRK or the like.  After that, 
> we would be in a sane state from which we could do the usual
> remote_open handshake.
> 
> Or is there something like that already?

It's true that we can't attach to a remote stub where the target is
currently running; we'll be looking at that in the context of non-stop
debugging but probably by changing the remote protocol somewhat.  With
the existing protocol it's hard because sending a query may be
interpreted as an interrupt.  If the stub's waiting to send something,
how's the user supposed to figure out if it already has or not?

-- 
Daniel Jacobowitz
CodeSourcery


      parent reply	other threads:[~2008-02-29 20:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-29 20:23 Michael Snyder
2008-02-29 20:26 ` Paul Koning
2008-02-29 22:20   ` Michael Snyder
2008-02-29 20:29 ` 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=20080229202554.GA7757@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    /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