jit: c++-ify gdb_block
[deliverable/binutils-gdb.git] / gdb / fbsd-tdep.h
index efd7c2c78f69dde584ac0c9b3aca5693cffe2fc3..0e29508c9fa71794cd6635b3ecede732bf870ad4 100644 (file)
@@ -60,4 +60,15 @@ extern void fbsd_info_proc_mappings_entry (int addr_bit, ULONGEST kve_start,
                                           int kve_flags, int kve_protection,
                                           const void *kve_path);
 
+/* Helper function to fetch the address of a thread-local variable.
+   DTV_ADDR is the base address of the thread's dtv array.  LM_ADDR is
+   the address of the link_map structure for the associated object
+   file.  OFFSET is the offset of the variable in the object file's
+   thread-local variable block.  */
+
+extern CORE_ADDR fbsd_get_thread_local_address (struct gdbarch *gdbarch,
+                                               CORE_ADDR dtv_addr,
+                                               CORE_ADDR lm_addr,
+                                               CORE_ADDR offset);
+
 #endif /* fbsd-tdep.h */
This page took 0.024397 seconds and 4 git commands to generate.