aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-linux-nat.c
diff options
context:
space:
mode:
authorSergei Trofimovich <siarheit@google.com>2021-04-25 20:50:38 +0100
committerSergei Trofimovich <siarheit@google.com>2021-04-26 07:22:08 +0100
commitc290cb01face96fa9c2a4f96f7d57083da3c99f1 (patch)
treedcfcb27e4528ea8ce296bfcbcd31894d546b5bb3 /gdb/sparc-linux-nat.c
parent6476ec743f13594bd0ef642cabd7b1dd3548073e (diff)
downloadbinutils-c290cb01face96fa9c2a4f96f7d57083da3c99f1.zip
binutils-c290cb01face96fa9c2a4f96f7d57083da3c99f1.tar.gz
binutils-c290cb01face96fa9c2a4f96f7d57083da3c99f1.tar.bz2
gdb: fix sparc build failure of linux-nat
On sparc build failed as: ``` gdb/sparc-linux-nat.c: In member function 'virtual void sparc_linux_nat_target::fetch_registers(regcache*, int)': gdb/sparc-linux-nat.c:36:37: error: cannot convert 'regcache*' to 'process_stratum_target*' 36 | { sparc_fetch_inferior_registers (regcache, regnum); } | ^~~~~~~~ | | | regcache* ``` The fix adopts gdb/sparc-nat.h API change in d1e93af64a6 ("gdb: set current thread in sparc_{fetch,collect}_inferior_registers"). gdb/ChangeLog: * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build by passing `process_stratum_target*` parameter.
Diffstat (limited to 'gdb/sparc-linux-nat.c')
-rw-r--r--gdb/sparc-linux-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c
index c644d44..33a17af 100644
--- a/gdb/sparc-linux-nat.c
+++ b/gdb/sparc-linux-nat.c
@@ -33,10 +33,10 @@ class sparc_linux_nat_target final : public linux_nat_target
public:
/* Add our register access methods. */
void fetch_registers (struct regcache *regcache, int regnum) override
- { sparc_fetch_inferior_registers (regcache, regnum); }
+ { sparc_fetch_inferior_registers (this, regcache, regnum); }
void store_registers (struct regcache *regcache, int regnum) override
- { sparc_store_inferior_registers (regcache, regnum); }
+ { sparc_store_inferior_registers (this, regcache, regnum); }
};
static sparc_linux_nat_target the_sparc_linux_nat_target;