diff options
Diffstat (limited to 'gdb/amd64-fbsd-tdep.c')
-rw-r--r-- | gdb/amd64-fbsd-tdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/amd64-fbsd-tdep.c b/gdb/amd64-fbsd-tdep.c index f71bddf..b0639ed 100644 --- a/gdb/amd64-fbsd-tdep.c +++ b/gdb/amd64-fbsd-tdep.c @@ -30,6 +30,7 @@ #include "amd64-tdep.h" #include "fbsd-tdep.h" #include "solib-svr4.h" +#include "inferior.h" /* Support for signal handlers. */ @@ -212,7 +213,8 @@ amd64fbsd_get_thread_local_address (struct gdbarch *gdbarch, ptid_t ptid, { struct regcache *regcache; - regcache = get_thread_arch_regcache (ptid, gdbarch); + regcache = get_thread_arch_regcache (current_inferior ()->process_target (), + ptid, gdbarch); target_fetch_registers (regcache, AMD64_FSBASE_REGNUM); |