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

Open
remyoudompheng opened this Issue Nov 25, 2012 · 8 comments

Comments

Projects
None yet
3 participants
@remyoudompheng
Contributor

remyoudompheng commented Nov 25, 2012

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

This comment has been minimized.

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

This comment has been minimized.

Contributor

remyoudompheng commented Nov 25, 2012

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

This comment has been minimized.

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

This comment has been minimized.

Contributor

rsc commented Dec 30, 2012

Comment 4:

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

Status changed to Accepted.

@rsc

This comment has been minimized.

Contributor

rsc commented Mar 12, 2013

Comment 5:

[The time for maybe has passed.]

Labels changed: removed go1.1maybe.

@rsc

This comment has been minimized.

Contributor

rsc commented Nov 27, 2013

Comment 6:

Labels changed: added go1.3maybe.

@rsc

This comment has been minimized.

Contributor

rsc commented Dec 4, 2013

Comment 7:

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

@rsc

This comment has been minimized.

Contributor

rsc commented Dec 4, 2013

Comment 8:

Labels changed: added repo-main.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment