mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 04:36:29 +08:00
proc: Never return a stack trace of zero frames
proc.(*Thread).Scope fails if we can find a FDE but PCToLine returns nothing
This commit is contained in:
@ -127,6 +127,9 @@ func (it *stackIterator) Next() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if it.frame.Current.Fn == nil {
|
if it.frame.Current.Fn == nil {
|
||||||
|
if it.top {
|
||||||
|
it.err = fmt.Errorf("PC not associated to any function")
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user