* hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
authorJim Kingdon <jkingdon@engr.sgi.com>
Mon, 12 Jul 1993 16:34:23 +0000 (16:34 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Mon, 12 Jul 1993 16:34:23 +0000 (16:34 +0000)
use it.

gdb/ChangeLog
gdb/hppa-tdep.c

index 8ba35ed..cd7304f 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jul 12 11:29:44 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
+       use it.
+
 Sun Jul 11 19:35:05 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
        * symtab.c (decode_line_1): Use end of block to figure out whether
index 10204bc..c4a8580 100644 (file)
@@ -327,6 +327,11 @@ find_proc_framesize(pc)
   if (!u)
     return -1;
 
+  if (u->Save_SP)
+    /* If this bit is set, it means there is a frame pointer and we should
+       use it.  */
+    return -1;
+
   return u->Total_frame_size << 3;
 }