diff options
author | Ian Lance Taylor <iant@golang.org> | 2016-03-23 17:10:18 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2016-03-31 04:05:06 +0000 |
commit | b4117995e3e01a669be737c36033c2393858d555 (patch) | |
tree | c01edce64a80a4d284a398d3a94efc0873196113 /src/cmd/internal/objfile/plan9obj.go | |
parent | 4b209dbf0bf3e5fd4cffda1e11f11bf45ddf212d (diff) | |
download | go-git-b4117995e3e01a669be737c36033c2393858d555.tar.gz |
cmd/pprof: use DWARF info to lookup unknown PC addresses
Test to follow in a separate CL that arranges for the runtime package to
store non-Go addresses in a CPU profile.
Change-Id: I33ce1d66b77340b1e62b54505fc9b1abcec108a9
Reviewed-on: https://go-review.googlesource.com/21055
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/internal/objfile/plan9obj.go')
-rw-r--r-- | src/cmd/internal/objfile/plan9obj.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/internal/objfile/plan9obj.go b/src/cmd/internal/objfile/plan9obj.go index 45a6d02748..1d808f77eb 100644 --- a/src/cmd/internal/objfile/plan9obj.go +++ b/src/cmd/internal/objfile/plan9obj.go @@ -7,7 +7,9 @@ package objfile import ( + "debug/dwarf" "debug/plan9obj" + "errors" "fmt" "os" "sort" @@ -144,3 +146,7 @@ func (f *plan9File) goarch() string { } return "" } + +func (f *plan9File) dwarf() (*dwarf.Data, error) { + return nil, errors.New("no DWARF data in Plan 9 file") +} |