* hppa-tdep.c (pc_in_linker_stub): New function.
authorJim Kingdon <jkingdon@engr.sgi.com>
Mon, 19 Jul 1993 17:36:18 +0000 (17:36 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Mon, 19 Jul 1993 17:36:18 +0000 (17:36 +0000)
(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.

gdb/hppa-tdep.c

index 6d3929e394b80a0a59369c90454f752bfcd53714..885f6db56d89bcf166a97e631937000ac8957dd0 100644 (file)
@@ -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;
     }
 }
 \f