Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: gdb-patches@sourceware.org
Subject: [commit] Rename fetch/store_inferior_registers in sparc-nat.c
Date: Mon, 07 May 2007 00:23:00 -0000	[thread overview]
Message-ID: <200705070022.l470Mt1b011187@d12av02.megacenter.de.ibm.com> (raw)

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


                 reply	other threads:[~2007-05-07  0:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200705070022.l470Mt1b011187@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox