about summary refs log tree commit diff
path: root/nptl_db/thread_db.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-15 23:55:23 +0000
committerRoland McGrath <roland@gnu.org>2003-03-15 23:55:23 +0000
commit2f84cc6a484a430279297b97732b1da72b2e1e26 (patch)
tree6ffc02869459e12771ca8e1a23a3726ab7bbe63c /nptl_db/thread_db.h
parentc04dad400ad98221b99b7466a54888b8cc5ca659 (diff)
downloadglibc-2f84cc6a484a430279297b97732b1da72b2e1e26.tar.gz
glibc-2f84cc6a484a430279297b97732b1da72b2e1e26.tar.xz
glibc-2f84cc6a484a430279297b97732b1da72b2e1e26.zip
2003-03-15 Roland McGrath <roland@redhat.com>
	* thread_db.h (td_err_e): Add TD_NOTLS and TD_TLSDEFER.
	(td_thr_tlsbase): Declare it.
	* td_thr_tlsbase.c: New file.
	* Makefile (libthread_db-routines): Add it.
	* Versions (libthread_db: GLIBC_2.3.3): New set, add td_thr_tlsbase.
	* td_thr_tls_get_addr.c (td_thr_tls_get_addr): Use td_thr_tlsbase.
Diffstat (limited to 'nptl_db/thread_db.h')
-rw-r--r--nptl_db/thread_db.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/nptl_db/thread_db.h b/nptl_db/thread_db.h
index ee7179c6dc..6328e16e76 100644
--- a/nptl_db/thread_db.h
+++ b/nptl_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,