Use frame address if arg pointer isn't available.
authorKen Raeburn <raeburn@cygnus>
Tue, 14 Jul 1992 22:07:47 +0000 (22:07 +0000)
committerKen Raeburn <raeburn@cygnus>
Tue, 14 Jul 1992 22:07:47 +0000 (22:07 +0000)
gdb/ChangeLog
gdb/i960-tdep.c

index 047ab240e110d45a2efe25458045595f58449a9c..b8afe8d1f45fcd8b16865ec5d9a9eb9a03c8d626 100644 (file)
@@ -1,5 +1,8 @@
 Tue Jul 14 16:59:46 1992  Ken Raeburn  (raeburn@cygnus.com)
 
+       * i960-tdep.c (frame_args_address): If arg pointer can't be found,
+       use frame address.
+
        * buildsym.c (read_struct_type): Don't die on TYPE_CODE_UNDEF
        nodes as base classes.
 
index eab040ad5c9ad07864e039cc0f5e122800c731d6..115bfe2aa45741f7ccb231b37e97319f7fc9e036 100644 (file)
@@ -410,6 +410,8 @@ frame_args_address (fi, must_be_correct)
       ap = 0;
     else
       ap = read_register (G14_REGNUM);
+    if (ap == 0)
+      ap = fi->frame;
   }
   fi->arg_pointer = ap;                /* Cache it for next time */
   return ap;