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/mn10200-tdep.c | |
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/mn10200-tdep.c')
-rw-r--r-- | gdb/mn10200-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |