提交 5c301dd9 编写于 作者: D Derek Parker

Improve 'in current fn' check for Next impl

上级 a69c2dc9
......@@ -279,7 +279,7 @@ func (dbp *DebuggedProcess) Next() error {
pc--
}
f, l, _ := dbp.GoSymTable.PCToLine(pc)
_, l, fn := dbp.GoSymTable.PCToLine(pc)
fde, err := dbp.FrameEntries.FDEForPC(pc)
if err != nil {
return err
......@@ -314,11 +314,9 @@ func (dbp *DebuggedProcess) Next() error {
return err
}
nf, nl, _ := dbp.GoSymTable.PCToLine(pc)
if nf == f && nl != l {
if fde.AddressRange.Cover(pc) {
break
}
_, nl, nfn := dbp.GoSymTable.PCToLine(pc)
if nfn == fn && nl != l {
break
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册