X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=gdb%2Fhppa-linux-nat.c;h=f352c25a3e63345a5b7f9211e095f72d0b446814;hb=13aa5ceb01cc94a0e617f397c0c5434fc22bb1e5;hp=7dea0790965875461714c5a4df1106e7fb5056a2;hpb=73e1c03f93f0294b464dc2b67de1f9aaae84838d;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c index 7dea079096..f352c25a3e 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-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -24,6 +24,7 @@ #include "target.h" #include "linux-nat.h" #include "inf-ptrace.h" +#include "gdbarch.h" #include #include "nat/gdb_ptrace.h" @@ -260,7 +261,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 +274,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) { @@ -340,9 +340,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]); } } @@ -382,12 +380,13 @@ 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); } } +void _initialize_hppa_linux_nat (); void -_initialize_hppa_linux_nat (void) +_initialize_hppa_linux_nat () { /* Register the target. */ linux_target = &the_hppa_linux_nat_target;