On Jul 28 12:43, Jon Turney wrote:
> GDB with the patch from [1] can report and use these names.
This is still WIP, right?
> Add utility function SetThreadName(), which sends a thread name to the
> debugger.
>
> Wire this up to set the default thread name for main thread and newly
> created pthr
Hi Jon,
On Jul 28 12:43, Jon Turney wrote:
> This patch adds pthread_getname_np and pthread_setname_np.
>
> These were added to glibc in 2.12[1] and are also present in some form on
> NetBSD and several UNIXes.
>
> The code is based on NetBSD's implementation with changes to better match
> Linux
Re-heat Yaakov's patch [1] for adding pthread_getname_np and pthread_setname_np
Use the native interface [2] for sending thread names to debugger
[1] https://cygwin.com/ml/cygwin-patches/2012-q1/msg00022.html
[2] https://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
Jon Turney (2):
Add pthre
This patch adds pthread_getname_np and pthread_setname_np.
These were added to glibc in 2.12[1] and are also present in some form on
NetBSD and several UNIXes.
The code is based on NetBSD's implementation with changes to better match
Linux behaviour.
Implementation quirks:
* pthread_setname_np
GDB with the patch from [1] can report and use these names.
Add utility function SetThreadName(), which sends a thread name to the
debugger.
Wire this up to set the default thread name for main thread and newly
created pthreads.
Wire this up in pthread_setname_np() for user thread names.
Wire t