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
Changes since v1: - pthread_setname_np() returns ERANGE for names longer than 16 characters to match linux - code style fixes - leave setting the name of the profiling thread in libgmon.a as future work Jon Turney (2): Add pthread_getname_np and pthread_setname_np Send thread names to debugger winsup/cygwin/common.din | 2 + winsup/cygwin/cygthread.cc | 2 + winsup/cygwin/dcrt0.cc | 1 + winsup/cygwin/exceptions.cc | 2 +- winsup/cygwin/include/cygwin/version.h | 3 +- winsup/cygwin/include/pthread.h | 2 + winsup/cygwin/miscfuncs.cc | 26 +++++++++++++ winsup/cygwin/miscfuncs.h | 2 + winsup/cygwin/net.cc | 1 + winsup/cygwin/release/2.6.0 | 1 + winsup/cygwin/thread.cc | 69 +++++++++++++++++++++++++++++++++- winsup/cygwin/thread.h | 1 + winsup/doc/new-features.xml | 4 ++ winsup/doc/posix.xml | 2 + 14 files changed, 115 insertions(+), 3 deletions(-) -- 2.8.3