terminal: show current thread of goroutines (#564)

This commit is contained in:
Alessandro Arzilli
2016-06-20 19:20:44 +02:00
committed by Derek Parker
parent ede880134c
commit 7761faad5b
4 changed files with 17 additions and 1 deletions

View File

@ -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 {