提交 be7f34ee 编写于 作者: D Derek Parker

Cleanup: Return err directly if cannot set breakpoint

上级 24876630
......@@ -312,20 +312,9 @@ func (dbp *DebuggedProcess) continueToReturnAddress(pc uint64, fde *frame.FrameD
bp, err := dbp.Break(uintptr(addr))
if err != nil {
if _, ok := err.(BreakPointExistsError); !ok {
for !fde.Cover(pc) {
err = dbp.Step()
if err != nil {
return err
}
pc, err = dbp.CurrentPC()
if err != nil {
return err
}
}
return nil
}
}
err = dbp.Continue()
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册