Add multibyte character warning option to the assembler.
[binutils-gdb.git] / gdb / arm-obsd-tdep.c
index 5ccf1d146d1283a5a8ec74a4fdb626b95e53ecfc..4fa88538e3466ac1224e00a5c657b6a1aa04d569 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for OpenBSD/arm.
 
-   Copyright (C) 2006-2016 Free Software Foundation, Inc.
+   Copyright (C) 2006-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -58,11 +58,11 @@ static const struct tramp_frame armobsd_sigframe =
   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
 };
@@ -76,7 +76,7 @@ static void
 armobsd_init_abi (struct gdbarch_info info,
                  struct gdbarch *gdbarch)
 {
-  struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+  arm_gdbarch_tdep *tdep = (arm_gdbarch_tdep *) gdbarch_tdep (gdbarch);
 
   if (tdep->fp_model == ARM_FLOAT_AUTO)
     tdep->fp_model = ARM_FLOAT_SOFT_VFP;
@@ -114,27 +114,11 @@ armobsd_init_abi (struct gdbarch_info info,
       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
-_initialize_armobsd_tdep (void)
+_initialize_armobsd_tdep ()
 {
-  /* 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);
 }