X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fm32r-linux-tdep.c;h=becd6434c221e4c8169c156d04445dcb77e622df;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=352a6f00f6ca0f620b626c78cc7eb16bbf8df819;hpb=e2882c85786571175a0b0bfc3bcd2f14620b1ea3;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/m32r-linux-tdep.c b/gdb/m32r-linux-tdep.c index 352a6f00f6..becd6434c2 100644 --- a/gdb/m32r-linux-tdep.c +++ b/gdb/m32r-linux-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for GNU/Linux m32r. - Copyright (C) 2004-2018 Free Software Foundation, Inc. + Copyright (C) 2004-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -36,6 +36,7 @@ #include "m32r-tdep.h" #include "linux-tdep.h" +#include "gdbarch.h" @@ -385,7 +386,7 @@ m32r_linux_supply_gregset (const struct regset *regset, p = regs + m32r_pt_regs_offset[i]; } - regcache_raw_supply (regcache, i, p); + regcache->raw_supply (i, p); } } @@ -401,7 +402,7 @@ m32r_linux_collect_gregset (const struct regset *regset, ULONGEST psw; gdb_byte buf[4]; - regcache_raw_collect (regcache, PSW_REGNUM, buf); + regcache->raw_collect (PSW_REGNUM, buf); psw = extract_unsigned_integer (buf, 4, byte_order); for (i = 0; i < ARRAY_SIZE (m32r_pt_regs_offset); i++) @@ -420,12 +421,11 @@ m32r_linux_collect_gregset (const struct regset *regset, case CBR_REGNUM: break; case M32R_SP_REGNUM: - regcache_raw_collect (regcache, i, regs - + ((psw & 0x80) ? SPU_OFFSET : SPI_OFFSET)); + regcache->raw_collect + (i, regs + ((psw & 0x80) ? SPU_OFFSET : SPI_OFFSET)); break; default: - regcache_raw_collect (regcache, i, - regs + m32r_pt_regs_offset[i]); + regcache->raw_collect (i, regs + m32r_pt_regs_offset[i]); } } } @@ -441,7 +441,8 @@ m32r_linux_iterate_over_regset_sections (struct gdbarch *gdbarch, void *cb_data, const struct regcache *regcache) { - cb (".reg", M32R_LINUX_GREGS_SIZE, &m32r_linux_gregset, NULL, cb_data); + cb (".reg", M32R_LINUX_GREGS_SIZE, M32R_LINUX_GREGS_SIZE, &m32r_linux_gregset, + NULL, cb_data); } static void @@ -470,8 +471,9 @@ m32r_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) svr4_fetch_objfile_link_map); } +void _initialize_m32r_linux_tdep (); void -_initialize_m32r_linux_tdep (void) +_initialize_m32r_linux_tdep () { gdbarch_register_osabi (bfd_arch_m32r, 0, GDB_OSABI_LINUX, m32r_linux_init_abi);