gdb/arm: Sync sp with other *sp registers
authorYvan Roux <yvan.roux@foss.st.com>
Mon, 25 Jul 2022 13:26:24 +0000 (15:26 +0200)
committerYvan Roux <yvan.roux@foss.st.com>
Mon, 25 Jul 2022 13:31:16 +0000 (15:31 +0200)
commita6e4a48c02acf29d6bec2ff63fc909b57cf4bc78
tree139830748735f052c86a640b2eb36e37286365c0
parent42e11f363c5e2c5e750e9b9b67fbae511d83974d
gdb/arm: Sync sp with other *sp registers

For Arm Cortex-M33 with security extensions, there are 4 different
stack pointers (msp_s, msp_ns, psp_s, psp_ns), without security
extensions and for other Cortex-M targets, there are 2 different
stack pointers (msp and psp).

With this patch, sp will always be in sync with one of the real stack
pointers on Arm targets that contain more than one stack pointer.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Signed-off-by: Yvan Roux <yvan.roux@foss.st.com>
gdb/arm-tdep.c