diff options
author | Mark Alexander <marka@cygnus> | 1998-06-16 23:36:01 +0000 |
---|---|---|
committer | Mark Alexander <marka@cygnus> | 1998-06-16 23:36:01 +0000 |
commit | 40fad4934f815c4f260683a15bee008c559ce79e (patch) | |
tree | 78bc6013906c8890460fa4bb0e7e0016157e5e34 /gdb | |
parent | 419997a6d417fdd5950f118064cecaea002a3dcb (diff) | |
download | gdb-40fad4934f815c4f260683a15bee008c559ce79e.zip gdb-40fad4934f815c4f260683a15bee008c559ce79e.tar.gz gdb-40fad4934f815c4f260683a15bee008c559ce79e.tar.bz2 |
* mn10200-tdep.c (mn10200_analyze_prologue): Fix null pointer
crash when in "start".
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mn10200-tdep.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3e32ff5..8e44e79 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/mn10200-tdep.c b/gdb/mn10200-tdep.c index 6300373..e2009e4 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; } |