aboutsummaryrefslogtreecommitdiff
path: root/gdb/i960-tdep.c
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/i960-tdep.c
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/i960-tdep.c')
-rw-r--r--gdb/i960-tdep.c2
1 files changed, 2 insertions, 0 deletions
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;