mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-08 18:33:42 +01:00
ARM: Return the dwarf.cfa in case the user requests SP/R13.
Usually we don't have a valid location for the SP but we keep calculating the value of the CFA. The ARM backend should return this value instead. Signed-off-by: Ken Werner <ken.werner@linaro.org>
This commit is contained in:
parent
f053677198
commit
0f9937485e
1 changed files with 1 additions and 1 deletions
|
@ -45,12 +45,12 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
|
|||
case UNW_ARM_R10:
|
||||
case UNW_ARM_R11:
|
||||
case UNW_ARM_R12:
|
||||
case UNW_ARM_R13:
|
||||
case UNW_ARM_R14:
|
||||
case UNW_ARM_R15:
|
||||
loc = c->dwarf.loc[reg - UNW_ARM_R0];
|
||||
break;
|
||||
|
||||
case UNW_ARM_R13:
|
||||
case UNW_ARM_CFA:
|
||||
if (write)
|
||||
return -UNW_EREADONLYREG;
|
||||
|
|
Loading…
Reference in a new issue