[Arm] Cleanup arm_m_exception_cache
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Thu, 11 Aug 2022 08:30:42 +0000 (09:30 +0100)
committerLuis Machado <luis.machado@arm.com>
Thu, 11 Aug 2022 08:57:44 +0000 (09:57 +0100)
commitdf4860daad8ffa29e0185e543a0a2aae32f7a925
tree38b7cf409615c2c45c9af1960aa8e141af202231
parent453595283c323e106a60b229999756b45ae6b2d8
[Arm] Cleanup arm_m_exception_cache

With this change, only valid contents of LR are accepted when unwinding
exception frames for m-profile targets.

If the contents of LR are anything but EXC_RETURN or FNC_RETURN, it
will cause GDB to print an error and/or abort unwinding of the frame as
it's an invalid state for the unwinder.

The FNC_RETURN pattern requires Security Extensions to be enabled.

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