* sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
authorRoland McGrath <roland@gnu.org>
Tue, 6 Jan 2004 10:31:21 +0000 (10:31 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 6 Jan 2004 10:31:21 +0000 (10:31 +0000)
register as second parameter to the REGISTER macro.
* sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
* sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
of thread register as second parameter to REGISTER macro in 64 case.

nptl/ChangeLog
nptl/sysdeps/alpha/tls.h
nptl/sysdeps/ia64/tls.h
nptl/sysdeps/powerpc/tls.h
nptl/sysdeps/s390/tls.h
nptl/sysdeps/sh/tls.h
nptl/sysdeps/sparc/tls.h
nptl_db/ChangeLog

index 2f9878e..f77a2a1 100644 (file)
@@ -1,3 +1,14 @@
+2003-12-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * sysdeps/alpha/tls.h (DB_THREAD_SELF): Pass bit size of thread
+       register as second parameter to the REGISTER macro.
+       * sysdeps/ia64/tls.h (DB_THREAD_SELF): Likewise.
+       * sysdeps/powerpc/tls.h (DB_THREAD_SELF): Likewise.
+       * sysdeps/sh/tls.h (DB_THREAD_SELF): Likewise.
+       * sysdeps/sparc/tls.h (DB_THREAD_SELF): Likewise.
+       * sysdeps/s390/tls.h (DB_THREAD_SELF): Pass __WORDSIZE as bit size
+       of thread register as second parameter to REGISTER macro in 64 case.
+
 2004-01-03  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Removed.
index 8f61bb7..f947fcf 100644 (file)
@@ -120,7 +120,7 @@ typedef struct
 
 /* Magic for libthread_db to know how to do THREAD_SELF.  */
 # define DB_THREAD_SELF \
-  REGISTER (64, 32 * 8, - TLS_TCB_OFFSET - TLS_PRE_TCB_SIZE)
+  REGISTER (64, 64, 32 * 8, - TLS_TCB_OFFSET - TLS_PRE_TCB_SIZE)
 
 /* Identifier for the current thread.  THREAD_SELF is usable but
    sometimes more expensive than necessary as in this case.  */
index 262944d..a37d6f4 100644 (file)
@@ -123,7 +123,7 @@ register struct pthread *__thread_self __asm__("r13");
 # define THREAD_SELF (__thread_self - 1)
 
 /* Magic for libthread_db to know how to do THREAD_SELF.  */
-# define DB_THREAD_SELF REGISTER (64, 13 * 8, -sizeof (struct pthread))
+# define DB_THREAD_SELF REGISTER (64, 64, 13 * 8, -sizeof (struct pthread))
 
 /* Access to data in the thread descriptor is easy.  */
 #define THREAD_GETMEM(descr, member) \
index 0259563..ce7f5bd 100644 (file)
@@ -131,9 +131,9 @@ register void *__thread_register __asm__ ("r13");
 
 /* Magic for libthread_db to know how to do THREAD_SELF.  */
 # define DB_THREAD_SELF                                                              \
-  REGISTER (32, PT_THREAD_POINTER * 4,                                       \
+  REGISTER (32, 32, PT_THREAD_POINTER * 4,                                           \
            - TLS_TCB_OFFSET - TLS_PRE_TCB_SIZE)                              \
-  REGISTER (64, PT_THREAD_POINTER * 8,                                       \
+  REGISTER (64, 64, PT_THREAD_POINTER * 8,                                           \
            - TLS_TCB_OFFSET - TLS_PRE_TCB_SIZE)
 
 /* Read member of the thread descriptor directly.  */
index 7b38e33..b038910 100644 (file)
@@ -1,5 +1,5 @@
-/* Definition for thread-local data handling.  nptl/s390 version.
-   Copyright (C) 2003 Free Software Foundation, Inc.
+/* Definition for thread-local data handling.  NPTL/s390 version.
+   Copyright (C) 2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -138,7 +138,8 @@ typedef struct
 # 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)
+# define DB_THREAD_SELF REGISTER (32, 32, 18 * 4, 0) \
+                       REGISTER (64, __WORDSIZE, 18 * 8, 0)
 
 /* Access to data in the thread descriptor is easy.  */
 #define THREAD_GETMEM(descr, member) \
index b6d8428..88b13a3 100644 (file)
@@ -118,7 +118,7 @@ typedef struct
      __self - 1;})
 
 /* Magic for libthread_db to know how to do THREAD_SELF.  */
-# define DB_THREAD_SELF REGISTER (32, REG_GBR * 4, 0)
+# define DB_THREAD_SELF REGISTER (32, 32, REG_GBR * 4, 0)
 
 /* Read member of the thread descriptor directly.  */
 # define THREAD_GETMEM(descr, member) (descr->member)
index 8c4264f..8980f9f 100644 (file)
@@ -107,7 +107,7 @@ register struct pthread *__thread_self __asm__("%g7");
 /* 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)
+  REGISTER (32, 32, REG_G7 * 4, 0) REGISTER (64, 64, REG_G7 * 8, 0)
 
 /* Access to data in the thread descriptor is easy.  */
 #define THREAD_GETMEM(descr, member) \
index 05f1c85..1d17a76 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * db_info.c (REGISTER): Add bit size of thread register as second
+       parameter to REGISTER macro.
+
 2003-12-02  Roland McGrath  <roland@redhat.com>
 
        * thread_dbP.h (DB_FUNCTION): New macro.