Add multibyte character warning option to the assembler.
[binutils-gdb.git] / gdb / arm-obsd-tdep.c
index 3db04fcb1a32ae1b31731221ad6e43fc5eb06efa..4fa88538e3466ac1224e00a5c657b6a1aa04d569 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for OpenBSD/arm.
 
-   Copyright (C) 2006-2018 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;
@@ -115,8 +115,9 @@ armobsd_init_abi (struct gdbarch_info info,
     }
 }
 
+void _initialize_armobsd_tdep ();
 void
-_initialize_armobsd_tdep (void)
+_initialize_armobsd_tdep ()
 {
   gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_OPENBSD,
                          armobsd_init_abi);