This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [MI non-stop 05/11, RFA] -exec-continue/-exec-interrupt --all


> +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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]