This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: non-stop/linux, thread stopping
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 16 Oct 2008 04:12:39 +0100
- Subject: Re: RFA: non-stop/linux, thread stopping
- References: <200810160354.39189.pedro@codesourcery.com>
On Thursday 16 October 2008 03:54:38, Pedro Alves wrote:
> To make it nicer on the eye, I'm making an output change in
> the CLI:
>
> New:
>
> [Thread 0xf7e306b0 (LWP 26335)] #1 stopped.
> 0xffffe410 in __kernel_vsyscall ()
>
> Old:
>
> Program received signal 0, Signal 0.
> 0xffffe410 in __kernel_vsyscall ()
>
> +
> + if (0 && (stop_info == TARGET_SIGNAL_0 && !ui_out_is_mi_like_p (uiout)))
> + {
> + struct thread_info *t = inferior_thread ();
> +
> + ui_out_text (uiout, "\n[");
> + ui_out_field_string (uiout, "thread-name",
> + target_pid_to_str (t->ptid));
> + ui_out_field_fmt (uiout, "thread-id", "] #%d", t->num);
> + ui_out_text (uiout, " stopped");
Eh, this `0 &&' sneaked in while writing the above. :-) Please ignore
that. It should be like this, of course:
+ if (stop_info == TARGET_SIGNAL_0 && !ui_out_is_mi_like_p (uiout))
:-)
--
Pedro Alves