This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: display thread names
- From: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 14 Jan 2011 16:30:00 -0200
- Subject: Re: RFA: display thread names
- References: <m3fwsygm4h.fsf@fleche.redhat.com>
On Wed, 2011-01-12 at 08:47 -0700, Tom Tromey wrote:
> @@ -1237,6 +1238,11 @@ extern char *normal_pid_to_str (ptid_t ptid);
> #define target_extra_thread_info(TP) \
> (current_target.to_extra_thread_info (TP))
>
> +/* Return the thread's name. A NULL result is ok. */
> +
> +#define target_thread_name(TP) \
> + (current_target.to_thread_name (TP))
> +
> /* Attempts to find the pathname of the executable file
> that was run to create a specified process.
I've been told that target macros are deprecated and new code should use
functions instead (as in target_fetch_registers).
--
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center