From 40fad4934f815c4f260683a15bee008c559ce79e Mon Sep 17 00:00:00 2001 From: Mark Alexander Date: Tue, 16 Jun 1998 23:36:01 +0000 Subject: [PATCH] * mn10200-tdep.c (mn10200_analyze_prologue): Fix null pointer crash when in "start". --- gdb/ChangeLog | 5 +++++ gdb/mn10200-tdep.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3e32ff5bb83..8e44e79a0c6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Jun 16 16:32:08 1998 Mark Alexander + + * 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 diff --git a/gdb/mn10200-tdep.c b/gdb/mn10200-tdep.c index 63003730617..e2009e44bc4 100644 --- a/gdb/mn10200-tdep.c +++ b/gdb/mn10200-tdep.c @@ -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; } -- 2.30.2