From: Sean Eric Fagan Date: Mon, 22 Jul 1991 20:35:30 +0000 (+0000) Subject: Put in a check to make sure symbols have names; if there is no name, then X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f630bb0e2205cee2a34d4259d761a9830362e9b;p=binutils-gdb.git Put in a check to make sure symbols have names; if there is no name, then the symbol is not a function (I assume). --- diff --git a/gprof/gprof.c b/gprof/gprof.c index 9cf6447b3b7..94f7f98ba2e 100644 --- a/gprof/gprof.c +++ b/gprof/gprof.c @@ -688,6 +688,9 @@ funcsymbol( symp ) * where `funny' includes `.', .o file names * and `$', pascal labels. */ + if (!symp->name) + return FALSE; + for (name = symp->name; *name; name++) { if ( *name == '.' || *name == '$' ) { return FALSE;