diff options
Diffstat (limited to 'nptl/sysdeps/sparc/tls.h')
-rw-r--r-- | nptl/sysdeps/sparc/tls.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nptl/sysdeps/sparc/tls.h b/nptl/sysdeps/sparc/tls.h index 87255941c1..8c4264f24f 100644 --- a/nptl/sysdeps/sparc/tls.h +++ b/nptl/sysdeps/sparc/tls.h @@ -104,6 +104,11 @@ register struct pthread *__thread_self __asm__("%g7"); /* Return the thread descriptor for the current thread. */ #define THREAD_SELF __thread_self +/* Magic for libthread_db to know how to do THREAD_SELF. */ +# define DB_THREAD_SELF_INCLUDE <sys/ucontext.h> +# define DB_THREAD_SELF \ + REGISTER (32, REG_G7 * 4, 0) REGISTER (64, REG_G7 * 8, 0) + /* Access to data in the thread descriptor is easy. */ #define THREAD_GETMEM(descr, member) \ descr->member |