* mn10200-tdep.c (mn10200_analyze_prologue): Fix null pointer

crash when in "start".
This commit is contained in:
Mark Alexander 1998-06-16 23:36:01 +00:00
parent 419997a6d4
commit 40fad4934f
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Jun 16 16:32:08 1998 Mark Alexander <marka@cygnus.com>
* mn10200-tdep.c (mn10200_analyze_prologue): Fix null pointer
crash when in "start".
Tue Jun 16 14:38:40 1998 Ron Unrau (runrau@cygnus.com)
* dbxread.c: reset function_start_offset after a finishing N_FUN

View File

@ -123,7 +123,8 @@ mn10200_analyze_prologue (fi, pc)
/* If we're in start, then give up. */
if (strcmp (name, "start") == 0)
{
fi->status = NO_MORE_FRAMES;
if (fi)
fi->status = NO_MORE_FRAMES;
return pc;
}