gdb/arm: Make sp alias for one of the other stack pointers
authorYvan Roux <yvan.roux@foss.st.com>
Wed, 15 Jun 2022 14:07:22 +0000 (16:07 +0200)
committerYvan Roux <yvan.roux@foss.st.com>
Wed, 15 Jun 2022 14:07:22 +0000 (16:07 +0200)
commitb9b66a3a5740dfa0cf929a9c9abcdbaabe989358
tree4c2bc14bc2505fcd4d2a5c0f9fbed5cb01da1842
parent0d12d61b9a646f317d9793492971c9a28f83b754
gdb/arm: Make sp alias for one of the other stack pointers

For Cortex-M targets, SP register is never detached from msp or
psp, it always has the same value as one of them.  Let GDB treat
ARM_SP_REGNUM as an alias similar to what is done in hardware.

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