Don't fail with shared object without name

pstack was failing with shared objects loaded by the dynamic linker which have
no name. This tiny patch makes pstack ignore those objects.
This commit is contained in:
Thomas Preud'homme 2010-05-06 20:15:28 +02:00 committed by Thomas Preud'homme
parent a0a2ced897
commit ce2f83eaec
1 changed files with 2 additions and 0 deletions

View File

@ -388,6 +388,8 @@ static Symbols loadSyms(const char *fname)
int fd;
Symbols syms;
if (*fname == '\0')
return (Symbols) 0;
syms = newSyms(fname);
if ((fd = open(fname, O_RDONLY)) < 0)
{