summaryrefslogtreecommitdiff
path: root/contrib/file
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2010-11-22 14:42:13 +0000
committerAttilio Rao <attilio@FreeBSD.org>2010-11-22 14:42:13 +0000
commit7f08176ee8b672feebd8a12572b43dddcb88046e (patch)
tree8831ac1227984e07e03c6ac1b5cf30bba847610f /contrib/file
parent7a3923c00eb666a0fe0aedeef6fbfb9b6573acb1 (diff)
downloadsrc-test-7f08176ee8b672feebd8a12572b43dddcb88046e.tar.gz
src-test-7f08176ee8b672feebd8a12572b43dddcb88046e.zip
Add the ability for GDB to printout the thread name along with other
thread specific informations. In order to do that, and in order to avoid KBI breakage with existing infrastructure the following semantic is implemented: - For live programs, a new member to the PT_LWPINFO is added (pl_tdname) - For cores, a new ELF note is added (NT_THRMISC) that can be used for storing thread specific, miscellaneous, informations. Right now it is just popluated with a thread name. GDB, then, retrieves the correct informations from the corefile via the BFD interface, as it groks the ELF notes and create appropriate pseudo-sections. Sponsored by: Sandvine Incorporated Tested by: gianni Discussed with: dim, kan, kib MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=215679
Diffstat (limited to 'contrib/file')
-rw-r--r--contrib/file/readelf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/file/readelf.h b/contrib/file/readelf.h
index ab4b5d1d60c5b..6b3e806ebee6e 100644
--- a/contrib/file/readelf.h
+++ b/contrib/file/readelf.h
@@ -224,6 +224,7 @@ typedef struct {
#define NT_TASKSTRUCT 4
#define NT_PLATFORM 5
#define NT_AUXV 6
+#define NT_THRMISC 7
/* Note types used in executables */
/* NetBSD executables (name = "NetBSD") */