This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH 0/2] Thread name support (v2)
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-patches at cygwin dot com
- Cc: Jon Turney <jon dot turney at dronecode dot org dot uk>
- Date: Mon, 22 Aug 2016 19:08:46 +0100
- Subject: [PATCH 0/2] Thread name support (v2)
- Authentication-results: sourceware.org; auth=none
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