Multi-target support
[deliverable/binutils-gdb.git] / gdb / amd64-fbsd-tdep.c
index 9c5ff301ef33a25fdde9465b70df4f9f3cff5af9..b0639ed95a672102ccf0395c99610dc2ad074b90 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for FreeBSD/amd64.
 
-   Copyright (C) 2003-2019 Free Software Foundation, Inc.
+   Copyright (C) 2003-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-
-/* Local non-gdb includes.  */
-#include "amd64-tdep.h"
 #include "arch-utils.h"
-#include "common/x86-xstate.h"
-#include "fbsd-tdep.h"
 #include "frame.h"
 #include "gdbcore.h"
-#include "i386-fbsd-tdep.h"
-#include "osabi.h"
 #include "regcache.h"
+#include "osabi.h"
 #include "regset.h"
+#include "i386-fbsd-tdep.h"
+#include "gdbsupport/x86-xstate.h"
+
+#include "amd64-tdep.h"
+#include "fbsd-tdep.h"
 #include "solib-svr4.h"
+#include "inferior.h"
 
 /* Support for signal handlers.  */
 
@@ -213,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);
 
This page took 0.035657 seconds and 4 git commands to generate.