summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads.old_db/thread_db.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-29 03:51:02 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-29 03:51:02 +0000
commit2d9da2f6be3e662889ef0e72759fe0f1a1495812 (patch)
tree8305337a5a2dee0085b57e970426f15c8d96dac5 /libpthread/linuxthreads.old_db/thread_db.h
parent52d5212ff513bcc37a2c146ac99a76fd93189372 (diff)
downloaduClibc-alpine-2d9da2f6be3e662889ef0e72759fe0f1a1495812.tar.bz2
uClibc-alpine-2d9da2f6be3e662889ef0e72759fe0f1a1495812.tar.xz
Merge from trunk that gives us a valid NPTL dynamic loader and the start of the new build system. I have probably another 300 and some files to go *sigh*.
Diffstat (limited to 'libpthread/linuxthreads.old_db/thread_db.h')
-rw-r--r--libpthread/linuxthreads.old_db/thread_db.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/libpthread/linuxthreads.old_db/thread_db.h b/libpthread/linuxthreads.old_db/thread_db.h
index f0d9aa7c3..c115399a3 100644
--- a/libpthread/linuxthreads.old_db/thread_db.h
+++ b/libpthread/linuxthreads.old_db/thread_db.h
@@ -1,4 +1,5 @@
-/* Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+/* thread_db.h -- interface to libthread_db.so library for debugging -lpthread
+ Copyright (C) 1999,2001,2002,2003 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
@@ -52,8 +53,10 @@ typedef enum
TD_MALLOC, /* Out of memory. */
TD_PARTIALREG, /* Not entire register set was read or written. */
TD_NOXREGS, /* X register set not available for given thread. */
- TD_NOTALLOC, /* TLS memory not yet allocated. */
- TD_VERSION /* Version if libpthread and libthread_db do not match. */
+ TD_TLSDEFER, /* Thread has not yet allocated TLS for given module. */
+ TD_NOTALLOC = TD_TLSDEFER,
+ TD_VERSION, /* Version if libpthread and libthread_db do not match. */
+ TD_NOTLS /* There is TLS segment in the given module. */
} td_err_e;
@@ -402,6 +405,11 @@ extern td_err_e td_thr_setxregs (const td_thrhandle_t *__th,
const void *__addr);
+/* Get address of the given module's TLS storage area for the given thread. */
+extern td_err_e td_thr_tlsbase (const td_thrhandle_t *__th,
+ unsigned long int __modid,
+ psaddr_t *__base);
+
/* Get address of thread local variable. */
extern td_err_e td_thr_tls_get_addr (const td_thrhandle_t *__th,
void *__map_address, size_t __offset,