This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Stop unlikely "run"'s earlier
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 7 Nov 2007 15:44:05 -0800
- Subject: Re: [rfc] Stop unlikely "run"'s earlier
- References: <20071107211833.GA28200@caradoc.them.org>
> I don't think this behavior is useful. "run" should select a native
> target when the current target is an executable or core file, but
> not when it's connected to some other target. This patch changes
> the behavior to:
>
> (gdb) run
> The "remote" target can not run programs. Try "help target" or "continue".
>
> Any comments? Shall I commit this?
I agree this is a more useful behavior.
> 2007-11-07 Daniel Jacobowitz <dan@codesourcery.com>
>
> * infcmd.c (kill_if_already_running): Make static. Use
> target_require_runnable.
> * target.c (target_require_runnable): New.
> * target.h (target_require_runnable): Declare.
Looks good to me.
--
Joel