Don't insert a bogus <nil> into printed path.
This commit is contained in:
parent
e3ffbf3b84
commit
88bb285e3d
1 changed files with 3 additions and 0 deletions
|
|
@ -81,6 +81,9 @@ main(int argc, char **argv)
|
||||||
if(s.attrs.have.lowpc){
|
if(s.attrs.have.lowpc){
|
||||||
if(dwarfpctoline(d, s.attrs.lowpc, &cdir, &dir, &file, &line, &mtime, &length) < 0)
|
if(dwarfpctoline(d, s.attrs.lowpc, &cdir, &dir, &file, &line, &mtime, &length) < 0)
|
||||||
print("\tcould not find source: %r\n");
|
print("\tcould not find source: %r\n");
|
||||||
|
else if(dir == nil)
|
||||||
|
print("\t%s/%s:%lud mtime=%lud length=%lud\n",
|
||||||
|
cdir, file, line, mtime, length);
|
||||||
else
|
else
|
||||||
print("\t%s/%s/%s:%lud mtime=%lud length=%lud\n",
|
print("\t%s/%s/%s:%lud mtime=%lud length=%lud\n",
|
||||||
cdir, dir, file, line, mtime, length);
|
cdir, dir, file, line, mtime, length);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue