X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fhppa-linux-nat.c;h=aea21d1c84badcf9eff98753d6615948a4e29ab6;hb=ed8358e9491d5ae0a8ee021c162a85867af1146a;hp=39ae83fe6aeec2337356ff93dfcd9b16eac6b973;hpb=222312d359fe0a68f8583ba315583ee8cc94f252;p=external%2Fbinutils.git diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c index 39ae83f..aea21d1 100644 --- a/gdb/hppa-linux-nat.c +++ b/gdb/hppa-linux-nat.c @@ -1,6 +1,6 @@ /* Functions specific to running GDB native on HPPA running GNU/Linux. - Copyright (C) 2004-2018 Free Software Foundation, Inc. + Copyright (C) 2004-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -229,7 +229,7 @@ fetch_register (struct regcache *regcache, int regno) if (gdbarch_cannot_fetch_register (gdbarch, regno)) { - regcache_raw_supply (regcache, regno, NULL); + regcache->raw_supply (regno, NULL); return; } @@ -242,7 +242,7 @@ fetch_register (struct regcache *regcache, int regno) gdbarch_register_name (gdbarch, regno), regno, safe_strerror (errno)); - regcache_raw_supply (regcache, regno, &val); + regcache->raw_supply (regno, &val); } /* Store one register. */ @@ -260,7 +260,7 @@ store_register (const struct regcache *regcache, int regno) tid = get_ptrace_pid (regcache->ptid ()); errno = 0; - regcache_raw_collect (regcache, regno, &val); + regcache->raw_collect (regno, &val); ptrace (PTRACE_POKEUSER, tid, hppa_linux_register_addr (regno, 0), val); if (errno != 0) error (_("Couldn't write register %s (#%d): %s."), @@ -273,8 +273,7 @@ store_register (const struct regcache *regcache, int regno) point registers depending upon the value of regno. */ void -hppa_linux_nat_target::fetch_inferior_registers (struct regcache *regcache, - int regno) +hppa_linux_nat_target::fetch_registers (struct regcache *regcache, int regno) { if (-1 == regno) { @@ -321,7 +320,7 @@ supply_gregset (struct regcache *regcache, const gdb_gregset_t *gregsetp) for (i = 0; i < sizeof (greg_map) / sizeof (greg_map[0]); i++, regp++) { int regno = greg_map[i]; - regcache_raw_supply (regcache, regno, regp); + regcache->raw_supply (regno, regp); } } @@ -340,9 +339,7 @@ fill_gregset (const struct regcache *regcache, int mregno = greg_map[i]; if (regno == -1 || regno == mregno) - { - regcache_raw_collect(regcache, mregno, &(*gregsetp)[i]); - } + regcache->raw_collect (mregno, &(*gregsetp)[i]); } } @@ -359,8 +356,8 @@ supply_fpregset (struct regcache *regcache, const gdb_fpregset_t *fpregsetp) for (regi = 0; regi <= 31; regi++) { from = (const char *) &((*fpregsetp)[regi]); - regcache_raw_supply (regcache, 2*regi + HPPA_FP0_REGNUM, from); - regcache_raw_supply (regcache, 2*regi + HPPA_FP0_REGNUM + 1, from + 4); + regcache->raw_supply (2*regi + HPPA_FP0_REGNUM, from); + regcache->raw_supply (2*regi + HPPA_FP0_REGNUM + 1, from + 4); } } @@ -382,7 +379,7 @@ fill_fpregset (const struct regcache *regcache, char *to = (char *) &((*fpregsetp)[(i - HPPA_FP0_REGNUM) / 2]); if ((i - HPPA_FP0_REGNUM) & 1) to += 4; - regcache_raw_collect (regcache, i, to); + regcache->raw_collect (i, to); } }