summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lambrechts <jonathan@aljl.eu>2015-02-13 18:51:33 +0100
committerAliaksey Kandratsenka <alk@tut.by>2015-02-13 17:54:14 -0800
commit90d7408d381cf2ad68ce4974cbccd51ed5222ca3 (patch)
treeeeef71a64ccd9f056c821bd18e59369be5e42ba3
parentaa963a24ae7a74b095a631ea6a86cd071c453911 (diff)
downloadgperftools-90d7408d381cf2ad68ce4974cbccd51ed5222ca3.tar.gz
pprof : callgrind : fix unknown files
-rwxr-xr-xsrc/pprof2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pprof b/src/pprof
index c23299d..26ba23d 100755
--- a/src/pprof
+++ b/src/pprof
@@ -2837,7 +2837,7 @@ sub ExtractSymbolLocation {
my $location = "??:0:unknown";
if (exists $symbols->{$address}) {
my $file = $symbols->{$address}->[1];
- if ($file eq "?") {
+ if ($file eq "?" || $file eq ":0") {
$file = "??:0"
}
$location = $file . ":" . $symbols->{$address}->[0];