]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* 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 2f9878e31d465592b536ce1775a36731cc8e697d..f77a2a1c5ef435d9b098113b392728a145e604f3 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 8f61bb740949131ace7a1d7300fe09755ea64fa4..f947fcf648be11e69f59f9e5658c0499924f320e 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 262944d89fd0ce09b2edb55e3cda908782f2dad6..a37d6f4d32f77baa2150243665bcd0546652d9c5 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 02595637c7da36a4c9541651f14ad33bdc57c335..ce7f5bd53d425588fadbf903a95ac1b1b39d12b1 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 7b38e3389de98ca3842f4421794d45ff0c5702ee..b03891038743029f80edd3ebb9a500c66b68d723 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 b6d8428bf63eb7f970cbdea3ba2b00d723de78c8..88b13a35c8ae5a1d3f004bbd758ff0da7fcb00ee 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 8c4264f24f7a6897732973b2ce85ee86979bfff5..8980f9fc0ccae70563ee90ca1b035234a0f7e82a 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 05f1c853cf49a4ee66910bce21830eb4d4f7f41e..1d17a7606687c29db368e0b3540ffd415d3244e8 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.