Skip to content

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

Closed
ianlancetaylor opened this issue Oct 5, 2018 · 6 comments
Closed

debug/xcoff: should we add this to the standard library? #28037

ianlancetaylor opened this issue Oct 5, 2018 · 6 comments
Labels
FrozenDueToAge NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone

Comments

@ianlancetaylor
Copy link
Contributor

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

@ianlancetaylor ianlancetaylor added the NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made. label Oct 5, 2018
@ianlancetaylor ianlancetaylor added this to the Go1.12 milestone Oct 5, 2018
@ianlancetaylor
Copy link
Contributor Author

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.

@Helflym
Copy link
Contributor

Helflym commented Oct 11, 2018

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.

@bradfitz
Copy link
Contributor

@Helflym, in an outstanding change to pprof (link?), or already in pprof guarded by +build gccgo?

@ianlancetaylor, I'm fine with x/debug/xcoff already if you are.

@Helflym
Copy link
Contributor

Helflym commented Oct 12, 2018

@bradfitz
Copy link
Contributor

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.

@gopherbot
Copy link
Contributor

Change https://golang.org/cl/138727 mentions this issue: cmd/internal/xcoff: Add new debug package for cmd

gopherbot pushed a commit that referenced this issue Oct 19, 2018
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>
@golang golang locked and limited conversation to collaborators Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsDecision Feedback is required from experts, contributors, and/or the community before a change can be made.
Projects
None yet
Development

No branches or pull requests

4 participants