From 6885166d994162c92dc9053bdf2d87e67a452db3 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Wed, 20 Apr 2016 12:31:53 +0100 Subject: 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 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ... * arch/arm-linux.h: ... here. gdb/gdbserver: 2016-04-20 Yao Qi * 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. --- gdb/arch/arm-linux.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/arch') diff --git a/gdb/arch/arm-linux.h b/gdb/arch/arm-linux.h index dfd634c..ed83da9 100644 --- a/gdb/arch/arm-linux.h +++ b/gdb/arch/arm-linux.h @@ -20,6 +20,9 @@ #ifndef ARM_LINUX_H #define ARM_LINUX_H +/* The index to access CSPR in user_regs defined in GLIBC. */ +#define ARM_CPSR_GREGNUM 16 + /* There are a couple of different possible stack layouts that we need to support. -- cgit v1.1