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

runtime: add a "goroutine apply all" function to GDB plugin #4439

Closed
remyoudompheng opened this issue Nov 25, 2012 · 9 comments
Closed

runtime: add a "goroutine apply all" function to GDB plugin #4439

remyoudompheng opened this issue Nov 25, 2012 · 9 comments
Milestone

Comments

@remyoudompheng
Copy link
Contributor

The GDB plugin provides a "goroutine" command so that we can do: "info
goroutines" or "goroutine 1 bt".

GDB provides "info threads", "thread apply 1 bt" similarly, but also
"thread apply all bt" which is nice.

It seems that an option to view all backtraces would be useful, because in most
situations most goroutines are blocked waiting and looking for a particular goroutine is
hard. It could be called "goroutine all bt" or "goroutine apply all
bt".
@minux
Copy link
Member

minux commented Nov 25, 2012

Comment 1:

i've done something similar 6 months ago, https://golang.org/cl/6210061/
(it won't apply cleanly due to recent gdb script change)
if you think that's what you want, i can clean up that CL and send it for review.

@remyoudompheng
Copy link
Contributor Author

Comment 2:

Yes, it looks like what I'm thinking about, I'm definitely interested, though the need
doesn't come very often, in cornercase debugging it's very helpful.

@minux
Copy link
Member

minux commented Nov 25, 2012

Comment 3:

a recent change to gdb script makes goroutine cmd accept gdb variables,
so a workaround is to write the loop yourself.

@rsc
Copy link
Contributor

rsc commented Dec 30, 2012

Comment 4:

Labels changed: added priority-later, removed priority-triage.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Mar 12, 2013

Comment 5:

[The time for maybe has passed.]

Labels changed: removed go1.1maybe.

@rsc
Copy link
Contributor

rsc commented Nov 27, 2013

Comment 6:

Labels changed: added go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 7:

Labels changed: added release-none, removed go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 8:

Labels changed: added repo-main.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@prattmic
Copy link
Member

prattmic commented Oct 3, 2023

Done in https://go.dev/cl/122589 as goroutine all <cmd>.

@prattmic prattmic closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants