Re: [PATCH 2/2] Send thread names to debugger

2016-07-28 Thread Corinna Vinschen
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

Re: [PATCH 1/2] Add pthread_getname_np and pthread_setname_np

2016-07-28 Thread Corinna Vinschen
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

[PATCH 0/2] Thread name support

2016-07-28 Thread Jon Turney
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

[PATCH 1/2] Add pthread_getname_np and pthread_setname_np

2016-07-28 Thread Jon Turney
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

[PATCH 2/2] Send thread names to debugger

2016-07-28 Thread Jon Turney
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