提交 383e9c1c 编写于 作者: D Derek Parker

Cleanup reassignments

上级 cd603aee
......@@ -258,7 +258,7 @@ func (dbp *DebuggedProcess) next() error {
var goroutineExiting bool
for _, th := range dbp.Threads {
if th.blocked() { // Continue threads that aren't running go code.
if err := th.Continue(); err != nil {
if err = th.Continue(); err != nil {
return err
}
continue
......
......@@ -123,14 +123,14 @@ func (thread *ThreadContext) CallFn(name string, fn func() error) error {
}
defer thread.Process.Clear(bp.Addr)
if err := thread.saveRegisters(); err != nil {
if err = thread.saveRegisters(); err != nil {
return err
}
if err = thread.SetPC(f.Entry); err != nil {
return err
}
defer thread.restoreRegisters()
if err := thread.Continue(); err != nil {
if err = thread.Continue(); err != nil {
return err
}
if _, err = trapWait(thread.Process, -1); err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册