This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: gdbserver for ARM/Linux + conditional branches
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com, Robert Schwebel <robert at schwebel dot de>,Stuart Hughes <seh at zee2 dot com>
- Date: Sun, 17 Nov 2002 19:42:36 -0500
- Subject: PATCH: gdbserver for ARM/Linux + conditional branches
Stuart, thanks for the patch. I've committed the attached version to
mainline and the GDB 5.3 branch, so this will be fixed in the next
release.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2002-11-17 Stuart Hughes <seh@zee2.com>
* linux-arm-low.c (arm_num_regs): Increase.
(arm_regmap): Include status register.
2002-11-17 Daniel Jacobowitz <drow@mvista.com>
* linux-low.c (register_addr): Remove incorrect -1 check.
Index: linux-arm-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-arm-low.c,v
retrieving revision 1.4
diff -u -p -r1.4 linux-arm-low.c
--- linux-arm-low.c 11 Jun 2002 17:32:39 -0000 1.4
+++ linux-arm-low.c 18 Nov 2002 00:34:28 -0000
@@ -26,11 +26,13 @@
#include <sys/reg.h>
#endif
-#define arm_num_regs 16
+#define arm_num_regs 26
static int arm_regmap[] = {
0, 4, 8, 12, 16, 20, 24, 28,
32, 36, 40, 44, 48, 52, 56, 60,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 64
};
static int
Index: linux-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v
retrieving revision 1.19
diff -u -p -r1.19 linux-low.c
--- linux-low.c 29 Aug 2002 18:50:24 -0000 1.19
+++ linux-low.c 18 Nov 2002 00:34:29 -0000
@@ -894,8 +894,6 @@ register_addr (int regnum)
error ("Invalid register number %d.", regnum);
addr = the_low_target.regmap[regnum];
- if (addr == -1)
- addr = 0;
return addr;
}