ubsan: bpf: left shift cannot be represented in type 'DI' (aka 'long')
[deliverable/binutils-gdb.git] / gdb / arm-obsd-tdep.c
index 5ccf1d146d1283a5a8ec74a4fdb626b95e53ecfc..a6055ab171df6a06fac96875ffbd4e1da27f0dde 100644 (file)
@@ -1,6 +1,6 @@
 /* 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.
 
@@ -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
 };
@@ -114,27 +114,10 @@ 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)
 {
-  /* 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);
 }
This page took 0.042466 seconds and 4 git commands to generate.