X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Famd64-fbsd-tdep.c;h=7c3e33644e1083a11c03cfb83eb9bb96e90da78b;hb=581bea2c99751391fc49d104d5eacb85bfb63c96;hp=7e2e9edf21de3b8fa4e43c21046db8171c9da719;hpb=f5424cfa7e9337a6cb02a1f83c9feea0995c5350;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/amd64-fbsd-tdep.c b/gdb/amd64-fbsd-tdep.c index 7e2e9edf21..7c3e33644e 100644 --- a/gdb/amd64-fbsd-tdep.c +++ b/gdb/amd64-fbsd-tdep.c @@ -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. @@ -25,11 +25,12 @@ #include "osabi.h" #include "regset.h" #include "i386-fbsd-tdep.h" -#include "common/x86-xstate.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. */ @@ -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); @@ -268,8 +270,9 @@ amd64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) amd64fbsd_get_thread_local_address); } +void _initialize_amd64fbsd_tdep (); void -_initialize_amd64fbsd_tdep (void) +_initialize_amd64fbsd_tdep () { gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_FREEBSD, amd64fbsd_init_abi);