(sparc_store_inferior_registers): Likewise.
* sparc-nat.c (fetch_inferior_registers): Rename to ...
(sparc_fetch_inferior_registers): ... this.
(store_inferior_registers): Rename to ...
(sparc_store_inferior_registers): ... this.
(sparc_target): Update callback names.
* sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
* sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
+2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
+ (sparc_store_inferior_registers): Likewise.
+ * sparc-nat.c (fetch_inferior_registers): Rename to ...
+ (sparc_fetch_inferior_registers): ... this.
+ (store_inferior_registers): Rename to ...
+ (sparc_store_inferior_registers): ... this.
+ (sparc_target): Update callback names.
+ * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
+ * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
+
2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
* linux-nat.c (child_post_attach): Rename to ...
t = linux_target ();
/* Add our register access methods. */
- t->to_fetch_registers = fetch_inferior_registers;
- t->to_store_registers = store_inferior_registers;
+ t->to_fetch_registers = sparc_fetch_inferior_registers;
+ t->to_store_registers = sparc_store_inferior_registers;
/* Register the target. */
linux_nat_add_target (t);
for all registers (including the floating-point registers). */
void
-fetch_inferior_registers (struct regcache *regcache, int regnum)
+sparc_fetch_inferior_registers (struct regcache *regcache, int regnum)
{
int pid;
}
void
-store_inferior_registers (struct regcache *regcache, int regnum)
+sparc_store_inferior_registers (struct regcache *regcache, int regnum)
{
int pid;
struct target_ops *t;
t = inf_ptrace_target ();
- t->to_fetch_registers = fetch_inferior_registers;
- t->to_store_registers = store_inferior_registers;
+ t->to_fetch_registers = sparc_fetch_inferior_registers;
+ t->to_store_registers = sparc_store_inferior_registers;
inf_ptrace_xfer_partial = t->to_xfer_partial;
t->to_xfer_partial = sparc_xfer_partial;
return t;
extern struct target_ops *sparc_target (void);
+extern void sparc_fetch_inferior_registers (struct regcache *, int);
+extern void sparc_store_inferior_registers (struct regcache *, int);
+
#endif /* sparc-nat.h */
t = linux_target ();
/* Add our register access methods. */
- t->to_fetch_registers = fetch_inferior_registers;
- t->to_store_registers = store_inferior_registers;
+ t->to_fetch_registers = sparc_fetch_inferior_registers;
+ t->to_store_registers = sparc_store_inferior_registers;
/* Register the target. */
linux_nat_add_target (t);