X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fmips64-obsd-tdep.c;h=3194ce862bd47345121a67549254f151033d1cb7;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=2d34db88cbaa7c6313d32b492910b9a731b713a1;hpb=481695ed5f6e0a8a9c9c50bfac1cdd2b3151e6c9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/mips64-obsd-tdep.c b/gdb/mips64-obsd-tdep.c index 2d34db88cb..3194ce862b 100644 --- a/gdb/mips64-obsd-tdep.c +++ b/gdb/mips64-obsd-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for OpenBSD/mips64. - Copyright (C) 2004-2017 Free Software Foundation, Inc. + Copyright (C) 2004-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -52,7 +52,7 @@ mips64obsd_supply_gregset (const struct regset *regset, 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); } } @@ -72,7 +72,8 @@ mips64obsd_iterate_over_regset_sections (struct gdbarch *gdbarch, 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); } @@ -127,11 +128,11 @@ static const struct tramp_frame mips64obsd_sigframe = 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 }; @@ -158,8 +159,9 @@ mips64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) (gdbarch, svr4_lp64_fetch_link_map_offsets); } +void _initialize_mips64obsd_tdep (); void -_initialize_mips64obsd_tdep (void) +_initialize_mips64obsd_tdep () { gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_OPENBSD, mips64obsd_init_abi);