cmd/objdump: add arm disassembler
cookieo9 opened this issue
Mar 3, 2014
· 11 comments
On darwin, running the list command in pprof produces an error from the go-supplied objdump. Weblist is similarly affected. What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Create code to be profiled (eg: http://play.golang.org/p/wW7KHrZQyB) 2. Profile it (go test -bench . -memprofile mem.prof) 3. Load the profile in pprof (go tool pprof --alloc_space alloc.test mem.profile) 4. Try to get a listing of a function (list alloc.BenchmarkAlloc) What is the expected output? A code listing w/ profile data for each line. What do you see instead? objdump: syminit: Undefined error: 0 no filename found in _/Users/cookieo9/alloc.BenchmarkAlloc<3c040> Which operating system are you using? Mac OS X 10.9.2 (darwin/amd64) Which version are you using? (run 'go version' or 'gccgo --version') go version devel +7257b771f12b Mon Mar 03 11:25:57 2014 -0800 darwin/amd64 (tip) Go 1.2.1 (homebrew) works, tip does not. I believe it has something to do with one of the changes to address https://golang.org/issue/6853 and objdump hasn't been brought up-to date.
The text was updated successfully, but these errors were encountered:
This issue was updated by revision 0d441a0.
This is the basic logic needed for objdump, and it works well enough to support the pprof list and weblist commands. A real disassembler needs to be added in order to support the pprof disasm command and the per-line assembly displays in weblist. That's still to come. Probably objdump will move to go.tools when the disassembler is added, but it can stay here for now. LGTM=minux.ma R=golang-codereviews, minux.ma CC=golang-codereviews, iant, r https://golang.org/cl/87580043
This issue was closed.