to the exception and if FPU is used (causing extended stack frame). */
CORE_ADDR lr = get_frame_register_unsigned (this_frame, ARM_LR_REGNUM);
- CORE_ADDR sp = get_frame_register_unsigned (this_frame, ARM_SP_REGNUM);
/* ARMv7-M Architecture Reference "A2.3.1 Arm core registers"
states that LR is set to 0xffffffff on reset. ARMv8-M Architecture
reset if Main Extension is implemented, otherwise the value is unknown. */
if (lr == 0xffffffff)
{
- /* Terminate any further stack unwinding by referring to self. */
- arm_cache_set_active_sp_value (cache, tdep, sp);
+ /* Terminate any further stack unwinding. */
+ arm_cache_set_active_sp_value (cache, tdep, 0);
return cache;
}
{
warning (_("Non-secure to secure stack unwinding disabled."));
- /* Terminate any further stack unwinding by referring to self. */
- arm_cache_set_active_sp_value (cache, tdep, sp);
+ /* Terminate any further stack unwinding. */
+ arm_cache_set_active_sp_value (cache, tdep, 0);
return cache;
}
{
warning (_("Non-secure to secure stack unwinding disabled."));
- /* Terminate any further stack unwinding by referring to self. */
- arm_cache_set_active_sp_value (cache, tdep, sp);
+ /* Terminate any further stack unwinding. */
+ arm_cache_set_active_sp_value (cache, tdep, 0);
return cache;
}