mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 20:20:40 +08:00
Cleanup reassignments
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user