mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 01:27:16 +08:00
proc: fix panic when calling Ancestors on a parked goroutine (#1570)
Fixes #1568
This commit is contained in:
committed by
Derek Parker
parent
21ac0eb4f8
commit
2d6d016bf1
@ -991,7 +991,7 @@ func (d *Debugger) Ancestors(goroutineID, numAncestors, depth int) ([]api.Ancest
|
||||
return nil, errors.New("no selected goroutine")
|
||||
}
|
||||
|
||||
ancestors, err := g.Ancestors(numAncestors)
|
||||
ancestors, err := proc.Ancestors(d.target, g, numAncestors)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user