-
Notifications
You must be signed in to change notification settings - Fork 18k
debug/xcoff: should we add this to the standard library? #28037
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
Comments
Decision: do not add debug/xcoff to the standard library. Let's start with it in cmd/internal/xcoff. If there is a reason to make it externally visible, let's put it in x/debug/xcoff and vendor it into cmd/vendor. |
This is needed by https://github.com/google/pprof which one of our teams is using (compiled by gccgo). So I think it should be put inside x/debug/xcoff. |
@Helflym, in an outstanding change to pprof (link?), or already in pprof guarded by @ianlancetaylor, I'm fine with x/debug/xcoff already if you are. |
@bradfitz this is needed for at least this file: https://github.com/google/pprof/blob/master/internal/binutils/binutils.go. |
Let's ignore pprof for a couple weeks and see AIX working first. Just work in cmd/internal/xcoff for a few weeks until things are happy and then we can copy it to x/debug/xcofff and do the whole vendor thing. But let's not get distracted with that right now. You can instead just disable any pprof tests for a few weeks. |
Change https://golang.org/cl/138727 mentions this issue: |
This commit adds a new package in cmd/internal which aims to debug and load XCOFF files. Updates: #25893, #28037 Change-Id: I47db495bedfa43e9129a831b9b8bbc35b703567b Reviewed-on: https://go-review.googlesource.com/c/138727 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
https://golang.org/cl/138727 proposes adding debug/xcoff to the standard library, in parallel to the existing debug/elf, debug/pe, and debug/macho packages.
@bradfitz objects, saying that debug/xcoff should be internal, and that all the other packages should be internal too if we had had internal when they were created. He proposes that they should all exist in golang.org/x/debug instead.
I tend to find these packages generally useful, and since the standard library needs them I think it's reasonable to have them in the standard library. Of course we can put them in x/debug/elf and vendor them into the standard library, but I don't see a clear reason to do that.
This needs a decision.
CC @Helflym
The text was updated successfully, but these errors were encountered: