aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-19 17:36:18 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-19 17:36:18 +0000
commit28403b8ee766e730a13ad2a7f2b817d1671905fd (patch)
treed9feb7ab93d100df111705547e5808f22aaeb411 /gdb
parent9d4dfbf3790af4d35484301d63ee9e1a791ad9e5 (diff)
downloadgdb-28403b8ee766e730a13ad2a7f2b817d1671905fd.zip
gdb-28403b8ee766e730a13ad2a7f2b817d1671905fd.tar.gz
gdb-28403b8ee766e730a13ad2a7f2b817d1671905fd.tar.bz2
* hppa-tdep.c (pc_in_linker_stub): New function.
(find_proc_framesize): Return 0 for linker stubs. (rp_saved): Tell the caller where rp is saved. (frame_chain_valid): Return 1 for linker stubs. (frame_saved_pc): Use return value from rp_saved.
Diffstat (limited to 'gdb')
-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;
}
}