From: Vladimir Prus <vladimir@codesourcery.com>
To: "Marc Khouzam" <marc.khouzam@ericsson.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [MI non-stop 05/11, RFA] -exec-continue/-exec-interrupt --all
Date: Sun, 29 Jun 2008 06:05:00 -0000 [thread overview]
Message-ID: <200806290947.37955.vladimir@codesourcery.com> (raw)
In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BD86@ecamlmw720.eamcs.ericsson.se>
On Saturday 28 June 2008 22:10:19 Marc Khouzam wrote:
> > +void
> > +interrupt_target_1 (int all_threads)
> > +{
> > + if (non_stop)
> > + {
> > + ptid_t ptid;
> > +
> > + if (all_threads)
> > + ptid = minus_one_ptid;
> > + else
> > + ptid = inferior_ptid;
> > +
> > + target_stop_ptid (ptid);
> > + }
> > + else
> > + target_stop ();
> > +}
> > +
> > /* Stop the execution of the target while running in async mode, in
> > the backgound. In all-stop, stop the whole process. In non-stop
> > mode, stop the current thread only by default, or stop all threads
> > @@ -2170,19 +2194,7 @@ interrupt_target_command (char *args, int from_tty)
> > if (!non_stop && all_threads)
> > error (_("-a is meaningless in all-stop mode."));
>
> Can this error be printed for an MI command?
It cannot. MI invokes interrupt_target_1, never interrupt_target_command.
- Volodya
next prev parent reply other threads:[~2008-06-29 5:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-28 16:56 Vladimir Prus
2008-06-28 18:17 ` Marc Khouzam
2008-06-29 6:05 ` Vladimir Prus [this message]
2008-06-28 20:28 ` Tom Tromey
2008-06-29 17:37 ` Vladimir Prus
2008-07-11 13:34 ` Daniel Jacobowitz
2008-07-13 4:25 ` Daniel Jacobowitz
2008-07-13 4:36 ` Vladimir Prus
2008-07-13 14:32 ` Daniel Jacobowitz
2008-07-13 16:24 ` Vladimir Prus
2008-07-13 22:35 ` Nick Roberts
2008-07-13 5:50 ` Vladimir Prus
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=200806290947.37955.vladimir@codesourcery.com \
--to=vladimir@codesourcery.com \
--cc=gdb-patches@sources.redhat.com \
--cc=marc.khouzam@ericsson.com \
/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