This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Rename fetch/store_inferior_registers in sparc-nat.c
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 7 May 2007 02:22:55 +0200 (CEST)
- Subject: [commit] Rename fetch/store_inferior_registers in sparc-nat.c
Hello,
another instance where a infptrace.c function name was still used:
fetch_inferior_registers and store_inferior_registers in sparc-nat.c.
The patch renames them to a sparc_ prefix and adds prototypes to
sparc-nat.h.
Tested by making sure the files still compile. Committed to mainline.
Bye,
Ulrich
ChangeLog:
* 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.
diff -urNp gdb-orig/gdb/sparc64-linux-nat.c gdb-head/gdb/sparc64-linux-nat.c
--- gdb-orig/gdb/sparc64-linux-nat.c 2007-05-06 16:32:03.000000000 +0200
+++ gdb-head/gdb/sparc64-linux-nat.c 2007-05-07 01:35:22.507650278 +0200
@@ -83,8 +83,8 @@ _initialize_sparc64_linux_nat (void)
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);
diff -urNp gdb-orig/gdb/sparc-linux-nat.c gdb-head/gdb/sparc-linux-nat.c
--- gdb-orig/gdb/sparc-linux-nat.c 2007-05-07 01:56:34.848359659 +0200
+++ gdb-head/gdb/sparc-linux-nat.c 2007-05-07 01:56:22.934217930 +0200
@@ -65,8 +65,8 @@ _initialize_sparc_linux_nat (void)
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);
diff -urNp gdb-orig/gdb/sparc-nat.c gdb-head/gdb/sparc-nat.c
--- gdb-orig/gdb/sparc-nat.c 2007-05-07 01:56:34.853358938 +0200
+++ gdb-head/gdb/sparc-nat.c 2007-05-07 01:56:22.939217209 +0200
@@ -135,7 +135,7 @@ sparc32_fpregset_supplies_p (int regnum)
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;
@@ -186,7 +186,7 @@ fetch_inferior_registers (struct regcach
}
void
-store_inferior_registers (struct regcache *regcache, int regnum)
+sparc_store_inferior_registers (struct regcache *regcache, int regnum)
{
int pid;
@@ -332,8 +332,8 @@ sparc_target (void)
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;
diff -urNp gdb-orig/gdb/sparc-nat.h gdb-head/gdb/sparc-nat.h
--- gdb-orig/gdb/sparc-nat.h 2007-05-07 01:56:34.857358361 +0200
+++ gdb-head/gdb/sparc-nat.h 2007-05-07 01:56:22.944216489 +0200
@@ -42,4 +42,7 @@ extern int sparc32_fpregset_supplies_p (
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 */
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com