提交 6af32b40 编写于 作者: D Derek Parker

cleanup go vet errors

上级 0a12910b
......@@ -512,6 +512,4 @@ func wait(dbp *DebuggedProcess, pid int, options int) (int, *syscall.WaitStatus,
}
}
}
return 0, nil, nil
}
......@@ -87,12 +87,12 @@ func (thread *ThreadContext) Step() (err error) {
err = syscall.PtraceSingleStep(thread.Id)
if err != nil {
return fmt.Errorf("step failed: ", err.Error())
return fmt.Errorf("step failed: %s", err.Error())
}
_, _, err = wait(thread.Process, thread.Id, 0)
if err != nil {
return fmt.Errorf("step failed: ", err.Error())
return fmt.Errorf("step failed: %s", err.Error())
}
return nil
......@@ -120,7 +120,7 @@ func (thread *ThreadContext) Next() (err error) {
step := func() (uint64, error) {
err = thread.Step()
if err != nil {
return 0, fmt.Errorf("next stepping failed: ", err.Error())
return 0, fmt.Errorf("next stepping failed: %s", err.Error())
}
return thread.CurrentPC()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册