aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index bd8e12b..c7d8a6c 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -636,6 +636,12 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
{
p += 2;
p = strchr (p, ':');
+ if (p == NULL)
+ {
+ complaint (&symfile_complaints,
+ _("Bad stabs string '%s'"), string);
+ return NULL;
+ }
}
/* If a nameless stab entry, all we need is the type, not the symbol.