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
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
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 (
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
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