]> sourceware.org Git - newlib-cygwin.git/commit
Send thread names to debugger
authorJon Turney <jon.turney@dronecode.org.uk>
Wed, 27 Jul 2016 23:40:23 +0000 (00:40 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Tue, 23 Aug 2016 14:07:42 +0000 (15:07 +0100)
commit9e0f9ec7aedb59cacaf5831a27b925d791090113
tree2c0578bb4a92c36a8f06e95ca5e7dfd373abd792
parentfdb7df230ded019be0472565d79de14fe677dea7
Send thread names to debugger

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 thread names in cygthread::create()
- for helper threads which are created directly with CreateThread.

Note that there can still be anonymous threads, created by system or
injected DLLs.

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=24cdb46e9f0a694b4fbc11085e094857f08c0419
winsup/cygwin/cygthread.cc
winsup/cygwin/dcrt0.cc
winsup/cygwin/exceptions.cc
winsup/cygwin/miscfuncs.cc
winsup/cygwin/miscfuncs.h
winsup/cygwin/net.cc
winsup/cygwin/thread.cc
This page took 0.029676 seconds and 5 git commands to generate.