This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Report the main thread.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 10 May 2008 07:45:01 -0700
- Subject: Re: [RFA] Report the main thread.
- References: <18469.39280.284106.858072@kahikatea.snap.net.nz>
> Now that Joel has requested that I use observer_attach_new_thread for
> annotations this approach doesn't only produce MI output so it needs to
> be conditioned on MI:
>
> @@ -124,6 +124,10 @@ add_thread_silent (ptid_t ptid)
> tp->num = ++highest_thread_num;
> tp->next = thread_list;
> thread_list = tp;
> +
> + if (ui_out_is_mi_like_p (uiout))
> + observer_notify_new_thread (tp);
> +
> return tp;
> }
I am afraid this is not right. Could you elaborate more on what
the problem is?
--
Joel