Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/pprof: update for driver.ObjTool interface change #38802

Open
dmitshur opened this issue May 1, 2020 · 3 comments
Open

cmd/pprof: update for driver.ObjTool interface change #38802

dmitshur opened this issue May 1, 2020 · 3 comments
Milestone

Comments

@dmitshur
Copy link
Member

@dmitshur dmitshur commented May 1, 2020

The driver.ObjTool interface has changed in google/pprof@b1a9688 as follows:

 	// Disasm disassembles the named object file, starting at
 	// the start address and stopping at (before) the end address.
-	Disasm(file string, start, end uint64) ([]Inst, error)
+	Disasm(file string, start, end uint64, intelSyntax bool) ([]Inst, error)

In order to be able to update to a newer version of github.com/google/pprof dependency (part of #36905), we need to know how to update the objTool.Disasm method to conform to the new signature.

@hyangah, can you tell if we should use the intelSyntax value in some way, or should it be unused?

/cc @hyangah @wyk9787 @aalexand

@dmitshur dmitshur added this to the Go1.15 milestone May 1, 2020
@gopherbot
Copy link

@gopherbot gopherbot commented May 1, 2020

Change https://golang.org/cl/231657 mentions this issue: all: update module dependencies

@dmitshur
Copy link
Member Author

@dmitshur dmitshur commented May 1, 2020

I mentioned this issue as a TODO comment in CL 231657.

@dmitshur
Copy link
Member Author

@dmitshur dmitshur commented May 1, 2020

I've realized the scope of #36905 is to update golang.org/x/... dependencies only, external ones are out of scope. So I'll leave the update to github.com/google/pprof out of CL 231657 and set the milestone here to be Backlog.

@dmitshur dmitshur modified the milestones: Go1.15, Backlog May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.