aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1992-07-14 22:07:47 +0000
committerKen Raeburn <raeburn@cygnus>1992-07-14 22:07:47 +0000
commit7b8ca0a03f3115de0b56cf84a329620ddc536a4a (patch)
tree4264e8c3cc2f2985516b67ce54591c7813603453 /gdb
parent23c156a2ade87dc01d0cd98ffdfd886f2a9343b9 (diff)
downloadgdb-7b8ca0a03f3115de0b56cf84a329620ddc536a4a.zip
gdb-7b8ca0a03f3115de0b56cf84a329620ddc536a4a.tar.gz
gdb-7b8ca0a03f3115de0b56cf84a329620ddc536a4a.tar.bz2
Use frame address if arg pointer isn't available.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/i960-tdep.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 047ab24..b8afe8d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/i960-tdep.c b/gdb/i960-tdep.c
index eab040a..115bfe2 100644
--- a/gdb/i960-tdep.c
+++ b/gdb/i960-tdep.c
@@ -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;