summaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2002-11-18 00:37:50 +0000
committerDaniel Jacobowitz <dan@debian.org>2002-11-18 00:37:50 +0000
commit3ecb3a9ac70192468dd757044d8a554e277ebc1d (patch)
treeabb6ad29166b2284aaa30cbe7b81f5b570cc20fb /gdb/gdbserver
parenta5d588e4c9f490245543aa7c4abccb46785dd94c (diff)
downloadgdb-3ecb3a9ac70192468dd757044d8a554e277ebc1d.tar.gz
* linux-arm-low.c (arm_num_regs): Increase.
(arm_regmap): Include status register. * linux-low.c (register_addr): Remove incorrect -1 check.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog9
-rw-r--r--gdb/gdbserver/linux-arm-low.c4
-rw-r--r--gdb/gdbserver/linux-low.c2
3 files changed, 12 insertions, 3 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index e7ab6093235..d8e7c4cc556 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,12 @@
+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.
+
2002-08-29 Daniel Jacobowitz <drow@mvista.com>
* linux-low.c (linux_create_inferior): Call setpgid. Return
diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c
index 07e2792837c..cd075b2df8d 100644
--- a/gdb/gdbserver/linux-arm-low.c
+++ b/gdb/gdbserver/linux-arm-low.c
@@ -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
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 7644f9e990f..2cb592ae1da 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -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;
}