hey,
im not sure if i missed something when I saw this gdb command in this blog where you find out which stack pointer was being used prior to exception by looking at the 2nd bit of lr register. how can you say if it is psp or msp by looking at lr register? doesn’t it just hold the return address?