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

Joel Brobecker
2007-11-07T23:44:23Z

> 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