Don't invoke addr2line if dladdr() did not yield a filename
This commit is contained in:
1 parent
1f69412b4d
commit
b668f1417d
1 file changed
+1
-1
@@ -407,7 +407,7 @@ METHOD(backtrace_t, log_, void,
|
||||
esc(file, TTY_FG_YELLOW), info.dli_fname,
|
||||
esc(file, TTY_FG_DEF), info.dli_fbase, this->frames[i]);
|
||||
}
|
||||
if (detailed)
|
||||
if (detailed && info.dli_fname[0])
|
||||
{
|
||||
print_sourceline(file, (char*)info.dli_fname, ptr);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user