mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 17:56:45 +08:00
terminal: show current thread of goroutines (#564)
This commit is contained in:
committed by
Derek Parker
parent
ede880134c
commit
7761faad5b
@ -620,6 +620,10 @@ func (dbp *Process) GoroutinesInfo() ([]*G, error) {
|
||||
return allg, nil
|
||||
}
|
||||
|
||||
func (g *G) Thread() *Thread {
|
||||
return g.thread
|
||||
}
|
||||
|
||||
// Halt stops all threads.
|
||||
func (dbp *Process) Halt() (err error) {
|
||||
if dbp.exited {
|
||||
|
||||
Reference in New Issue
Block a user