This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] Stop unlikely "run"'s earlier


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]