gdb/arm: Update the value of active sp when base sp changes
authorYvan Roux <yvan.roux@foss.st.com>
Fri, 24 Jun 2022 15:16:54 +0000 (17:16 +0200)
committerYvan Roux <yvan.roux@foss.st.com>
Fri, 24 Jun 2022 15:16:54 +0000 (17:16 +0200)
commit10245fe8171a292dcf50051a33ec5bae7b08cb54
tree1e1bef29c051fba833ce362d698e06988f3a6d07
parent9704b8b4bc58f4f464961cca97d362fd33740ce8
gdb/arm: Update the value of active sp when base sp changes

For Arm Cortex-M33 with security extensions, there are 4 different
stacks pointers (msp_s, msp_ns, psp_s, psp_ns).
When plain "sp" is updated during unwinding of the stack, the active
stack pointer of the 4 stack pointers needs to be kept in sync.

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