aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.h
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@arm.com>2022-04-01 10:22:08 +0100
committerChristophe Lyon <christophe.lyon@arm.com>2022-04-27 15:18:18 +0100
commit9074667a8583b33ff1b9590232c15e67f2d1d607 (patch)
tree7fac426a2f4f1087545b74b547aeb4261c8dd6a0 /gdb/arm-tdep.h
parentfcaa1071d7921c4f7c7592a10ed7b84830ec8c49 (diff)
downloadgdb-9074667a8583b33ff1b9590232c15e67f2d1d607.zip
gdb-9074667a8583b33ff1b9590232c15e67f2d1d607.tar.gz
gdb-9074667a8583b33ff1b9590232c15e67f2d1d607.tar.bz2
gdb/arm: Define MSP and PSP registers for M-Profile
This patch removes the hardcoded access to PSP in arm_m_exception_cache() and relies on the definition with the XML descriptions. Signed-off-by: Christophe Lyon <christophe.lyon@foss.st.com> Signed-off-by: Christophe Lyon <christophe.lyon@arm.com>
Diffstat (limited to 'gdb/arm-tdep.h')
-rw-r--r--gdb/arm-tdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h
index ae32fff..4017067 100644
--- a/gdb/arm-tdep.h
+++ b/gdb/arm-tdep.h
@@ -125,6 +125,9 @@ struct arm_gdbarch_tdep : gdbarch_tdep
register. */
int pacbti_pseudo_count = 0; /* Total number of PACBTI pseudo registers. */
+ int m_profile_msp_regnum = 0; /* M-profile MSP register number. */
+ int m_profile_psp_regnum = 0; /* M-profile PSP register number. */
+
bool is_m = false; /* Does the target follow the "M" profile. */
CORE_ADDR lowest_pc = 0; /* Lowest address at which instructions
will appear. */