aboutsummaryrefslogtreecommitdiff
path: root/gdb/mn10200-tdep.c
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1998-06-16 23:36:01 +0000
committerMark Alexander <marka@cygnus>1998-06-16 23:36:01 +0000
commit40fad4934f815c4f260683a15bee008c559ce79e (patch)
tree78bc6013906c8890460fa4bb0e7e0016157e5e34 /gdb/mn10200-tdep.c
parent419997a6d417fdd5950f118064cecaea002a3dcb (diff)
downloadgdb-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.c3
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;
}