mirror of git://sourceware.org/git/glibc.git
* 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.
This commit is contained in:
parent
387533915f
commit
763c0490a2
|
@ -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.
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue