/* Target-dependent code for NetBSD/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 "frame.h"
#include "gdbcore.h"
-#include "nbsd-tdep.h"
#include "osabi.h"
-#include "solib-svr4.h"
#include "symtab.h"
+#include "amd64-tdep.h"
+#include "gdbsupport/x86-xstate.h"
+#include "nbsd-tdep.h"
+#include "solib-svr4.h"
+
/* Support for signal handlers. */
/* Return whether THIS_FRAME corresponds to a NetBSD sigtramp
amd64_init_abi (info, gdbarch,
amd64_target_description (X86_XSTATE_SSE_MASK, true));
+ nbsd_init_abi (info, gdbarch);
tdep->jb_pc_offset = 7 * 8;
(gdbarch, svr4_lp64_fetch_link_map_offsets);
}
+void _initialize_amd64nbsd_tdep ();
void
-_initialize_amd64nbsd_tdep (void)
+_initialize_amd64nbsd_tdep ()
{
/* The NetBSD/amd64 native dependent code makes this assumption. */
gdb_assert (ARRAY_SIZE (amd64nbsd_r_reg_offset) == AMD64_NUM_GREGS);