summaryrefslogtreecommitdiff
path: root/src/mips/Gregs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mips/Gregs.c')
-rw-r--r--src/mips/Gregs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mips/Gregs.c b/src/mips/Gregs.c
index 9f37299c..0dfc4a93 100644
--- a/src/mips/Gregs.c
+++ b/src/mips/Gregs.c
@@ -69,6 +69,10 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp,
loc = c->dwarf.loc[reg - UNW_MIPS_R0];
break;
+ case UNW_MIPS_PC:
+ loc = c->dwarf.loc[reg];
+ break;
+
case UNW_MIPS_CFA:
if (write)
return -UNW_EREADONLYREG;