提交 87c3b0a7 编写于 作者: D Derek Parker

Minor syntax cleanup

上级 ecacbc8a
......@@ -73,8 +73,7 @@ func (dbp *DebuggedProcess) setBreakpoint(tid int, addr uint64) (*BreakPoint, er
// Try and set a hardware breakpoint.
for i, v := range dbp.HWBreakPoints {
if v == nil {
err := setHardwareBreakpoint(i, tid, addr)
if err != nil {
if err := setHardwareBreakpoint(i, tid, addr); err != nil {
return nil, fmt.Errorf("could not set hardware breakpoint")
}
dbp.HWBreakPoints[i] = dbp.newBreakpoint(fn.Name, f, l, addr, nil)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册