* acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-low.h
index d090b31a235914d2118075cc36d0a258db236f6f..53c5934af89c9a781cb69a3935d741f0d34f8060 100644 (file)
    Foundation, Inc., 51 Franklin Street, Fifth Floor,
    Boston, MA 02110-1301, USA.  */
 
+#ifdef HAVE_THREAD_DB_H
+#include <thread_db.h>
+#endif
+
 #ifdef HAVE_LINUX_REGSETS
 typedef void (*regset_fill_func) (void *);
 typedef void (*regset_store_func) (const void *);
@@ -124,6 +128,11 @@ struct process_info
      and then processed and cleared in linux_resume_one_process.  */
 
   struct thread_resume *resume;
+
+#ifdef HAVE_THREAD_DB_H
+  /* The thread handle, used for e.g. TLS access.  */
+  td_thrhandle_t th;
+#endif
 };
 
 extern struct inferior_list all_processes;
@@ -131,3 +140,5 @@ extern struct inferior_list all_processes;
 void linux_attach_lwp (unsigned long pid, unsigned long tid);
 
 int thread_db_init (void);
+int thread_db_get_tls_address (struct thread_info *thread, CORE_ADDR offset,
+                              CORE_ADDR load_module, CORE_ADDR *address);
This page took 0.023809 seconds and 4 git commands to generate.