/* Target-dependent code for OpenBSD/mips64.
- Copyright (C) 2004-2016 Free Software Foundation, Inc.
+ Copyright (C) 2004-2022 Free Software Foundation, Inc.
This file is part of GDB.
for (i = 0; i < MIPS64OBSD_NUM_REGS; i++)
{
if (regnum == i || regnum == -1)
- regcache_raw_supply (regcache, i, regs + i * 8);
+ regcache->raw_supply (i, regs + i * 8);
}
}
void *cb_data,
const struct regcache *regcache)
{
- cb (".reg", MIPS64OBSD_NUM_REGS * 8, &mips64obsd_gregset, NULL, cb_data);
+ cb (".reg", MIPS64OBSD_NUM_REGS * 8, MIPS64OBSD_NUM_REGS * 8,
+ &mips64obsd_gregset, NULL, cb_data);
}
\f
SIGTRAMP_FRAME,
MIPS_INSN32_SIZE,
{
- { 0x67a40020, -1 }, /* daddiu a0,sp,32 */
- { 0x24020067, -1 }, /* li v0,103 */
- { 0x0000000c, -1 }, /* syscall */
- { 0x0000000d, -1 }, /* break */
- { TRAMP_SENTINEL_INSN, -1 }
+ { 0x67a40020, ULONGEST_MAX }, /* daddiu a0,sp,32 */
+ { 0x24020067, ULONGEST_MAX }, /* li v0,103 */
+ { 0x0000000c, ULONGEST_MAX }, /* syscall */
+ { 0x0000000d, ULONGEST_MAX }, /* break */
+ { TRAMP_SENTINEL_INSN, ULONGEST_MAX }
},
mips64obsd_sigframe_init
};
(gdbarch, svr4_lp64_fetch_link_map_offsets);
}
-\f
-/* Provide a prototype to silence -Wmissing-prototypes. */
-void _initialize_mips64obsd_tdep (void);
-
+void _initialize_mips64obsd_tdep ();
void
-_initialize_mips64obsd_tdep (void)
+_initialize_mips64obsd_tdep ()
{
- gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_OPENBSD_ELF,
+ gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_OPENBSD,
mips64obsd_init_abi);
}