From 13f6513cd468be473c97822b4907b05bc408d69c Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 15 Mar 2011 19:03:52 +0000 Subject: 2011-03-04 Michael Snyder * dbxread.c (process_one_symbol): Assert 'name' is not null. --- gdb/ChangeLog | 2 ++ gdb/dbxread.c | 1 + 2 files changed, 3 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 11378c0..85a0d3f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-03-15 Michael Snyder + * dbxread.c (process_one_symbol): Assert 'name' is not null. + * objc-lang.c (selectors_info): Check strchr for null result. * stabsread.c (define_symbol): Guard against bad stabstring input. diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 2e32f38..9f9317d 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -3289,6 +3289,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, char *name, Generally this is used so that an alias can refer to its main symbol. */ + gdb_assert (name); if (name[0] == '#') { /* Initialize symbol reference names and determine if this is a -- cgit v1.1