/* Native-dependent code for OpenBSD/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"
+#include "gdbcore.h"
+#include "regcache.h"
+#include "target.h"
-/* Local non-gdb includes. */
+#include "amd64-tdep.h"
#include "amd64-bsd-nat.h"
#include "amd64-nat.h"
-#include "amd64-tdep.h"
-#include "gdbcore.h"
#include "obsd-nat.h"
-#include "regcache.h"
-#include "target.h"
/* Mapping between the general-purpose registers in OpenBSD/amd64
`struct reg' format and GDB's register cache layout for
static amd64_bsd_nat_target<obsd_nat_target> the_amd64_obsd_nat_target;
+void _initialize_amd64obsd_nat ();
void
-_initialize_amd64obsd_nat (void)
+_initialize_amd64obsd_nat ()
{
amd64_native_gregset32_reg_offset = amd64obsd32_r_reg_offset;
amd64_native_gregset32_num_regs = ARRAY_SIZE (amd64obsd32_r_reg_offset);