This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [MI non-stop 05/11, RFA] -exec-continue/-exec-interrupt --all
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