/* Target-dependent code for OpenBSD/arm.
- Copyright (C) 2006-2016 Free Software Foundation, Inc.
+ Copyright (C) 2006-2019 Free Software Foundation, Inc.
This file is part of GDB.
SIGTRAMP_FRAME,
4,
{
- { 0xe28d0010, -1 }, /* add r0, sp, #16 */
- { 0xef000067, -1 }, /* swi SYS_sigreturn */
- { 0xef000001, -1 }, /* swi SYS_exit */
- { 0xeafffffc, -1 }, /* b . - 8 */
- { TRAMP_SENTINEL_INSN, -1 }
+ { 0xe28d0010, ULONGEST_MAX }, /* add r0, sp, #16 */
+ { 0xef000067, ULONGEST_MAX }, /* swi SYS_sigreturn */
+ { 0xef000001, ULONGEST_MAX }, /* swi SYS_exit */
+ { 0xeafffffc, ULONGEST_MAX }, /* b . - 8 */
+ { TRAMP_SENTINEL_INSN, ULONGEST_MAX }
},
armobsd_sigframe_init
};
break;
}
}
-\f
-
-static enum gdb_osabi
-armobsd_core_osabi_sniffer (bfd *abfd)
-{
- if (strcmp (bfd_get_target (abfd), "netbsd-core") == 0)
- return GDB_OSABI_OPENBSD_ELF;
-
- return GDB_OSABI_UNKNOWN;
-}
-
-/* Provide a prototype to silence -Wmissing-prototypes. */
-extern initialize_file_ftype _initialize_armobsd_tdep;
void
_initialize_armobsd_tdep (void)
{
- /* BFD doesn't set a flavour for NetBSD style a.out core files. */
- gdbarch_register_osabi_sniffer (bfd_arch_arm, bfd_target_unknown_flavour,
- armobsd_core_osabi_sniffer);
-
- gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_OPENBSD_ELF,
+ gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_OPENBSD,
armobsd_init_abi);
}