From: Jim Kingdon Date: Mon, 19 Jul 1993 17:36:18 +0000 (+0000) Subject: * hppa-tdep.c (pc_in_linker_stub): New function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28403b8ee766e730a13ad2a7f2b817d1671905fd;p=binutils-gdb.git * 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. --- diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 6d3929e394b..885f6db56d8 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; } }