aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-linux-tdep.h
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-04-20 12:31:53 +0100
committerYao Qi <yao.qi@linaro.org>2016-04-20 12:32:15 +0100
commit6885166d994162c92dc9053bdf2d87e67a452db3 (patch)
tree49ea3ee0823e60e198206be970bc6cd40bad7a82 /gdb/arm-linux-tdep.h
parent7cc9c114fef05bc603111c0ceb6d2275c0275deb (diff)
Move ARM_CPSR_GREGNUM to arch/arm-linux.h
This patch moves macro ARM_CPSR_GREGNUM to arch/arm-linux.h so that it can be used in GDBserver side. gdb: 2016-04-20 Yao Qi <yao.qi@linaro.org> * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ... * arch/arm-linux.h: ... here. gdb/gdbserver: 2016-04-20 Yao Qi <yao.qi@linaro.org> * linux-aarch32-low.c: Include "arch/arm-linux.h". (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic number 16. (arm_store_gregset): Likewise.
Diffstat (limited to 'gdb/arm-linux-tdep.h')
-rw-r--r--gdb/arm-linux-tdep.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/arm-linux-tdep.h b/gdb/arm-linux-tdep.h
index 99f1777028..be18a64b63 100644
--- a/gdb/arm-linux-tdep.h
+++ b/gdb/arm-linux-tdep.h
@@ -24,9 +24,6 @@ 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