[PATCH 2/2] Send thread names to debugger

2016-08-22 Thread Jon Turney
GDB since commit 24cdb46e [1] can report and use these names. Add utility function SetThreadName(), which sends a thread name to the debugger. Use that: - to set the default thread name for main thread and newly created pthreads. - in pthread_setname_np() for user thread names. - for helper threa

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

2016-07-29 Thread Corinna Vinschen
On Jul 29 14:17, Jon Turney wrote: > On 28/07/2016 20:34, Corinna Vinschen wrote: > > 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? > > Yes, that's right. > > > > --- a/winsup/cygwin/cygthread.cc > > > +++ b

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

2016-07-29 Thread Jon Turney
On 28/07/2016 20:34, Corinna Vinschen wrote: 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? Yes, that's right. --- a/winsup/cygwin/cygthread.cc +++ b/winsup/cygwin/cygthread.cc @@ -213,6 +213,8 @@ cygthread::create (

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

[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