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: RFA: non-stop/linux, thread stopping


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


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