mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 12:03:41 +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];
|
||||
break;
|
||||
|
||||
case UNW_AARCH64_PC:
|
||||
case UNW_AARCH64_X30:
|
||||
if (write)
|
||||
c->dwarf.ip = *valp; /* update the IP cache */
|
||||
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_X28:
|
||||
case UNW_AARCH64_X29:
|
||||
case UNW_AARCH64_X30:
|
||||
case UNW_AARCH64_PC:
|
||||
case UNW_AARCH64_PSTATE:
|
||||
loc = c->dwarf.loc[reg];
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue