* hppa-tdep.c (pc_in_linker_stub): New function.
authorJim Kingdon <jkingdon@engr.sgi.com>
Thu, 15 Jul 1993 17:49:41 +0000 (17:49 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Thu, 15 Jul 1993 17:49:41 +0000 (17:49 +0000)
gdb/hppa-tdep.c

index d72e831d53223ec501baa00c77ba8ed6a41d30f9..6d3929e394b80a0a59369c90454f752bfcd53714 100644 (file)
@@ -304,10 +304,20 @@ static int
 pc_in_linker_stub (pc)
      CORE_ADDR pc;
 {
-
   int found_magic_instruction = 0;
   int i;
 
+  /* We are looking for something like
+
+     ; $$dyncall jams RP into this special spot in the frame (RP')
+     ; before calling the "call stub"
+     ldw     -18(sp),rp
+
+     ldsid   (rp),r1         ; Get space associated with RP into r1
+     mtsp    r1,sp           ; Move it into space register 0
+     be,n    0(sr0),rp)      ; back to your regularly scheduled program
+     */
+
   /* Maximum known linker stub size is 4 instructions.  Search forward
      from the given PC, then backward.  */
   for (i = 0; i < 4; i++)
This page took 0.027118 seconds and 4 git commands to generate.