From: Ken Raeburn Date: Tue, 14 Jul 1992 22:07:47 +0000 (+0000) Subject: Use frame address if arg pointer isn't available. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b8ca0a03f3115de0b56cf84a329620ddc536a4a;p=binutils-gdb.git Use frame address if arg pointer isn't available. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 047ab240e11..b8afe8d1f45 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 eab040ad5c9..115bfe2aa45 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;