aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-linux-tdep.h
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2009-04-22 15:14:59 +0000
committerKazu Hirata <kazu@codesourcery.com>2009-04-22 15:14:59 +0000
commit17c126391482f614c03b8321ea9be529f437c361 (patch)
tree385d4ffed236d62f64db2e61969e67fdca53e677 /gdb/arm-linux-tdep.h
parent155d87d738e89224bf936cd1c12e48fe4c09252d (diff)
downloadgdb-17c126391482f614c03b8321ea9be529f437c361.zip
gdb-17c126391482f614c03b8321ea9be529f437c361.tar.gz
gdb-17c126391482f614c03b8321ea9be529f437c361.tar.bz2
* arm-linux-nat.c (fetch_register, store_register): Use
ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM. * arm-linux-tdep.c (arm_linux_supply_gregset, arm_linux_collect_gregset): Likewise. * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New. * arm-tdep.h (ARM_CPSR_REGNUM): Remove.
Diffstat (limited to 'gdb/arm-linux-tdep.h')
-rw-r--r--gdb/arm-linux-tdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/arm-linux-tdep.h b/gdb/arm-linux-tdep.h
index 397bc4b..2c03938 100644
--- a/gdb/arm-linux-tdep.h
+++ b/gdb/arm-linux-tdep.h
@@ -24,6 +24,9 @@ struct regcache;
+ 2 * INT_REGISTER_SIZE \
+ 8 + INT_REGISTER_SIZE)
+/* The index to access CSPR in user_regs defined in GLIBC. */
+#define ARM_CPSR_GREGNUM 16
+
/* Support for register format used by the NWFPE FPA emulator. Each
register takes three words, where either the first one, two, or
three hold a single, double, or extended precision value (depending