summaryrefslogtreecommitdiff
path: root/src/aarch64/Gregs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/aarch64/Gregs.c')
-rw-r--r--src/aarch64/Gregs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/aarch64/Gregs.c b/src/aarch64/Gregs.c
index 6288275b..3e014769 100644
--- a/src/aarch64/Gregs.c
+++ b/src/aarch64/Gregs.c
@@ -55,6 +55,9 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
loc = c->dwarf.loc[reg];
break;
+ case UNW_AARCH64_PC:
+ if (write)
+ c->dwarf.ip = *valp; /* update the IP cache */
case UNW_AARCH64_X4:
case UNW_AARCH64_X5:
case UNW_AARCH64_X6:
@@ -82,7 +85,6 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
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;