gdb/arm: Terminate unwinding when LR is 0xffffffff
authorYvan Roux <yvan.roux@foss.st.com>
Thu, 9 Jun 2022 14:31:40 +0000 (16:31 +0200)
committerYvan Roux <yvan.roux@foss.st.com>
Thu, 9 Jun 2022 14:31:40 +0000 (16:31 +0200)
commit148ca9dd5cf96049c0db17c1230e4b96c0ac054a
treec47d4a7070afc733af80299192a4abb6dc74ee5d
parent575a212a78c6f7e213933cf96d9a63642edc5069
gdb/arm: Terminate unwinding when LR is 0xffffffff

ARMv7-M Architecture Reference "A2.3.1 Arm core registers" states
that LR is set to 0xffffffff on reset.

ARMv8-M Architecture Reference "B3.3 Registers" states that LR is set
to 0xffffffff on warm reset if Main Extension is implemented,
otherwise the value is unknown.

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