aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-15 19:03:52 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-15 19:03:52 +0000
commit13f6513cd468be473c97822b4907b05bc408d69c (patch)
tree4925123258c8bf8a05bd35d1b8f8137138e5f568 /gdb
parent50412521e8708f30e84ebd7d01bda034daf6411c (diff)
downloadgdb-13f6513cd468be473c97822b4907b05bc408d69c.zip
gdb-13f6513cd468be473c97822b4907b05bc408d69c.tar.gz
gdb-13f6513cd468be473c97822b4907b05bc408d69c.tar.bz2
2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* dbxread.c (process_one_symbol): Assert 'name' is not null.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/dbxread.c1
2 files changed, 3 insertions, 0 deletions
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 <msnyder@vmware.com>
+ * 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