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
- From: "Marc Khouzam" <marc dot khouzam at ericsson dot com>
- To: "Vladimir Prus" <vladimir at codesourcery dot com>, <gdb-patches at sources dot redhat dot com>
- Date: Sat, 28 Jun 2008 14:10:19 -0400
- Subject: RE: [MI non-stop 05/11, RFA] -exec-continue/-exec-interrupt --all
- References: <200806282045.39438.vladimir@codesourcery.com>
> +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?
If so, -a is not the flag in MI...