diff options
author | Lynn Boger <laboger@linux.vnet.ibm.com> | 2020-03-25 13:47:43 -0400 |
---|---|---|
committer | Lynn Boger <laboger@linux.vnet.ibm.com> | 2020-03-30 14:30:49 +0000 |
commit | 5a312288799c0a433e2061550ff92689b627e080 (patch) | |
tree | 6d80f1c3bbdc98622747391ae237ebe68cf0b42a /src/cmd/pprof | |
parent | 89e13c88e4f9f3a3eea7bf105e5af475727a4c33 (diff) | |
download | go-5a312288799c0a433e2061550ff92689b627e080.tar.gz go-5a312288799c0a433e2061550ff92689b627e080.zip |
cmd/objdump: add support for -gnu option on Go objdump
This adds support for the -gnu option on Go objdump. When
this option is used, then output will include gnu
assembly in comments alongside the Go assembly.
The objdump test was updated to test this new option.
This option is supported for the arches found in
golang.org/x that provide the GNUsyntax function.
Updates #34372
Change-Id: I9e60e1691526607dda3c857c4564dcef408b8391
Reviewed-on: https://go-review.googlesource.com/c/go/+/225459
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/pprof')
-rw-r--r-- | src/cmd/pprof/pprof.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/pprof/pprof.go b/src/cmd/pprof/pprof.go index 42e310043d..903f9cc1db 100644 --- a/src/cmd/pprof/pprof.go +++ b/src/cmd/pprof/pprof.go @@ -177,7 +177,7 @@ func (t *objTool) Disasm(file string, start, end uint64) ([]driver.Inst, error) return nil, err } var asm []driver.Inst - d.Decode(start, end, nil, func(pc, size uint64, file string, line int, text string) { + d.Decode(start, end, nil, false, func(pc, size uint64, file string, line int, text string) { asm = append(asm, driver.Inst{Addr: pc, File: file, Line: line, Text: text}) }) return asm, nil |