mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-11 03:23:43 +01:00
On aarch64, it is the X30 register, not the PC register, that is associated with the program counter.
This commit is contained in:
parent
6150f2f426
commit
23c3f24ea6
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
|
||||||
loc = c->dwarf.loc[reg];
|
loc = c->dwarf.loc[reg];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UNW_AARCH64_PC:
|
case UNW_AARCH64_X30:
|
||||||
if (write)
|
if (write)
|
||||||
c->dwarf.ip = *valp; /* update the IP cache */
|
c->dwarf.ip = *valp; /* update the IP cache */
|
||||||
case UNW_AARCH64_X4:
|
case UNW_AARCH64_X4:
|
||||||
|
@ -84,7 +84,7 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
|
||||||
case UNW_AARCH64_X27:
|
case UNW_AARCH64_X27:
|
||||||
case UNW_AARCH64_X28:
|
case UNW_AARCH64_X28:
|
||||||
case UNW_AARCH64_X29:
|
case UNW_AARCH64_X29:
|
||||||
case UNW_AARCH64_X30:
|
case UNW_AARCH64_PC:
|
||||||
case UNW_AARCH64_PSTATE:
|
case UNW_AARCH64_PSTATE:
|
||||||
loc = c->dwarf.loc[reg];
|
loc = c->dwarf.loc[reg];
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue