diff options
author | wkj <devnull@localhost> | 2005-06-22 04:05:14 +0000 |
---|---|---|
committer | wkj <devnull@localhost> | 2005-06-22 04:05:14 +0000 |
commit | 88bb285e3d87ec2508840af33f7e0af53ec3c13c (patch) | |
tree | e511d8386c2203d495a62d7cd5e4b1ba2eaa2fd1 | |
parent | e3ffbf3b84dc0f303b3c94dcddb776eeb7b8c58e (diff) | |
download | plan9port-88bb285e3d87ec2508840af33f7e0af53ec3c13c.tar.gz plan9port-88bb285e3d87ec2508840af33f7e0af53ec3c13c.tar.bz2 plan9port-88bb285e3d87ec2508840af33f7e0af53ec3c13c.zip |
Don't insert a bogus <nil> into printed path.
-rw-r--r-- | src/libmach/dwarfdump.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmach/dwarfdump.c b/src/libmach/dwarfdump.c index b894a060..1bb05073 100644 --- a/src/libmach/dwarfdump.c +++ b/src/libmach/dwarfdump.c @@ -81,6 +81,9 @@ main(int argc, char **argv) if(s.attrs.have.lowpc){ if(dwarfpctoline(d, s.attrs.lowpc, &cdir, &dir, &file, &line, &mtime, &length) < 0) 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 print("\t%s/%s/%s:%lud mtime=%lud length=%lud\n", cdir, dir, file, line, mtime, length); |