mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 04:35:19 +08:00
terminal,proc: Improved goroutine printing
Three locations are returned for goroutines: its current location, its current location excluding unexported runtime functions and the location of its go instruction. The command 'goroutines' takes a new parameter to select which location to print (defaulting to current location w/o runtime)
This commit is contained in:
@ -487,9 +487,7 @@ func (dbp *Process) GoroutinesInfo() ([]*G, error) {
|
||||
}
|
||||
g.thread = thread
|
||||
// Prefer actual thread location information.
|
||||
g.File = loc.File
|
||||
g.Line = loc.Line
|
||||
g.Func = loc.Fn
|
||||
g.Current = *loc
|
||||
}
|
||||
if g.Status != Gdead {
|
||||
allg = append(allg, g)
|
||||
|
||||
Reference in New Issue
Block a user