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>
This commit is contained in:
Christophe Lyon
2022-04-01 10:22:08 +01:00
parent fcaa1071d7
commit 9074667a85
7 changed files with 89 additions and 29 deletions

View File

@@ -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. */