public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* "run" behavior for "target remote"
@ 2006-06-16  0:59 Daniel Jacobowitz
  2006-06-18  3:42 ` Mark Kettenis
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-06-16  0:59 UTC (permalink / raw)
  To: gdb

This is just a thought extracted from my TODO list; not planning on making
any changes right now, but I wanted to throw out the idea for comments.

If you are connected to a target which does not support "run", for instance
a remote (not extended-remote) target, then run does these things:

  - kill
  - disconnect
  - run natively

If you're using gdbserver to localhost, you'll almost not notice the
difference.  Suddenly, instead of using a TCP connection to debug, you're
using native ptrace within GDB.  If you're using a cross debugger, the first
two steps will happen and then GDB will give you an error "Don't know how to
run".

Does anyone think that this behavior is useful?  If not, when connected to a
target which can execute (target_has_execution), but can't create new
processes or restart (no to_create_inferior) I think that "run" should
issue an error.

This originates, I think, with corefiles.  "run" when debugging a core file
switches from the core target to the native target and executes.  We can
easily preserve that.

-- 
Daniel Jacobowitz
CodeSourcery

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

* Re: "run" behavior for "target remote"
  2006-06-16  0:59 "run" behavior for "target remote" Daniel Jacobowitz
@ 2006-06-18  3:42 ` Mark Kettenis
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Kettenis @ 2006-06-18  3:42 UTC (permalink / raw)
  To: drow; +Cc: gdb

> Date: Thu, 15 Jun 2006 15:41:12 -0400
> From: Daniel Jacobowitz <drow@false.org>
> 
> This originates, I think, with corefiles.  "run" when debugging a core file
> switches from the core target to the native target and executes.  We can
> easily preserve that.

This is a feature that I tend to use quite a lot.

Mark

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

end of thread, other threads:[~2006-06-18  3:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-16  0:59 "run" behavior for "target remote" Daniel Jacobowitz
2006-06-18  3:42 ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).