/* Native-dependent code for SPARC.
- Copyright (C) 2003-2018 Free Software Foundation, Inc.
+ Copyright (C) 2003-2021 Free Software Foundation, Inc.
This file is part of GDB.
#ifndef SPARC_NAT_H
#define SPARC_NAT_H 1
+#include "target.h"
+
struct sparc_gregmap;
struct sparc_fpregmap;
extern int sparc32_gregset_supplies_p (struct gdbarch *gdbarch, int regnum);
extern int sparc32_fpregset_supplies_p (struct gdbarch *gdbarch, int regnum);
-extern void sparc_fetch_inferior_registers (struct regcache *, int);
-extern void sparc_store_inferior_registers (struct regcache *, int);
+extern void sparc_fetch_inferior_registers (process_stratum_target *proc_target,
+ regcache *, int);
+extern void sparc_store_inferior_registers (process_stratum_target *proc_target,
+ regcache *, int);
extern target_xfer_status sparc_xfer_wcookie (enum target_object object,
const char *annex,
struct sparc_target : public BaseTarget
{
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); }
enum target_xfer_status xfer_partial (enum target_object object,
const char *annex,
return sparc_xfer_wcookie (object, annex, readbuf, writebuf,
offset, len, xfered_len);
- return BaseTarget (object, annex, readbuf, writebuf,
- offset, len, xfered_len);
+ return BaseTarget::xfer_partial (object, annex, readbuf, writebuf,
+ offset, len, xfered_len);
}
};