This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Missed registers ref in sparc-nat.c
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 14 Jun 2003 12:23:44 -0400
- Subject: [commit] Missed registers ref in sparc-nat.c
With this obvious patch, sparc-linux builds. Unfortunately, the port mostly
worked in 5.3 and is completely trashed in CVS; constant SIGBUS's, timeouts
all over the testsuite, et cetera. It must have died somewhere in the past
few months.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-06-14 Daniel Jacobowitz <drow@mvista.com>
* sparc-nat.c (fetch_inferior_registers): Correct
a reference to "registers".
Index: sparc-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-nat.c,v
retrieving revision 1.17
diff -u -p -r1.17 sparc-nat.c
--- sparc-nat.c 7 Feb 2003 04:49:34 -0000 1.17
+++ sparc-nat.c 14 Jun 2003 16:21:58 -0000
@@ -108,7 +108,7 @@ fetch_inferior_registers (int regno)
= inferior_registers.r_pc;
*(int *) &deprecated_registers[REGISTER_BYTE (NPC_REGNUM)]
= inferior_registers.r_npc;
- *(int *) ®isters[REGISTER_BYTE (Y_REGNUM)] = inferior_registers.r_y;
+ *(int *) &deprecated_registers[REGISTER_BYTE (Y_REGNUM)] = inferior_registers.r_y;
for (i = G0_REGNUM; i <= O7_REGNUM; i++)
deprecated_register_valid[i] = 1;