Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sourceware.org
Subject: Re: [rfc] Stop unlikely "run"'s earlier
Date: Wed, 07 Nov 2007 23:44:00 -0000	[thread overview]
Message-ID: <20071107234405.GH3911@adacore.com> (raw)
In-Reply-To: <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


      parent reply	other threads:[~2007-11-07 23:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07 21:18 Daniel Jacobowitz
2007-11-07 22:06 ` Eli Zaretskii
2007-11-07 22:17   ` Daniel Jacobowitz
2007-11-17 11:32     ` Eli Zaretskii
2008-02-27 20:32       ` Daniel Jacobowitz
2008-02-27 21:29         ` Eli Zaretskii
2008-02-28 16:28           ` Daniel Jacobowitz
2007-11-07 23:44 ` Joel Brobecker [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=20071107234405.GH3911@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@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