From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3663 invoked by alias); 7 May 2007 00:23:01 -0000 Received: (qmail 3653 invoked by uid 22791); 7 May 2007 00:23:00 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate6.de.ibm.com (HELO mtagate6.de.ibm.com) (195.212.29.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 07 May 2007 00:22:58 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate6.de.ibm.com (8.13.8/8.13.8) with ESMTP id l470Mt30076804 for ; Mon, 7 May 2007 00:22:55 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l470MtWN3756200 for ; Mon, 7 May 2007 02:22:55 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l470MtHj011190 for ; Mon, 7 May 2007 02:22:55 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id l470Mt1b011187 for ; Mon, 7 May 2007 02:22:55 +0200 Message-Id: <200705070022.l470Mt1b011187@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 7 May 2007 02:22:55 +0200 Subject: [commit] Rename fetch/store_inferior_registers in sparc-nat.c To: gdb-patches@sourceware.org Date: Mon, 07 May 2007 00:23:00 -0000 From: "Ulrich Weigand" X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00075.txt.bz2 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