2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>

* dbxread.c (process_one_symbol): Assert 'name' is not null.
This commit is contained in:
Michael Snyder 2011-03-15 19:03:52 +00:00
parent 50412521e8
commit 13f6513cd4
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View File

@ -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