aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/s390/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/s390/tls.h')
-rw-r--r--nptl/sysdeps/s390/tls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/nptl/sysdeps/s390/tls.h b/nptl/sysdeps/s390/tls.h
index 06237ae15b..7b38e3389d 100644
--- a/nptl/sysdeps/s390/tls.h
+++ b/nptl/sysdeps/s390/tls.h
@@ -137,6 +137,9 @@ typedef struct
/* Return the thread descriptor for the current thread. */
# define THREAD_SELF ((struct pthread *) __builtin_thread_pointer ())
+/* Magic for libthread_db to know how to do THREAD_SELF. */
+# define DB_THREAD_SELF REGISTER (32, 18 * 4, 0) REGISTER (64, 18 * 8, 0)
+
/* Access to data in the thread descriptor is easy. */
#define THREAD_GETMEM(descr, member) \
descr->member