From ce2f83eaecb53d259485a6647b665bf4f7c1803e Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 6 May 2010 20:15:28 +0200 Subject: [PATCH] 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. --- pstack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pstack.c b/pstack.c index 9262d42..24dbea3 100644 --- a/pstack.c +++ b/pstack.c @@ -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) {