aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 6d3929e..885f6db 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -486,7 +486,7 @@ frame_saved_pc (frame)
if (rp_offset == 0)
return read_register (RP_REGNUM) & ~0x3;
else
- return read_memory_integer (frame->frame - rp_offset, 4) & ~0x3;
+ return read_memory_integer (frame->frame + rp_offset, 4) & ~0x3;
}
}