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: display thread names


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


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