Inline superfluous function definition

This commit is contained in:
Derek Parker
2015-07-10 14:48:45 -05:00
parent aa71d787aa
commit 99cf3abc18

View File

@ -375,10 +375,7 @@ func (dbp *Process) Continue() error {
return fmt.Errorf("could not continue thread %d %s", thread.Id, err)
}
}
return dbp.run(dbp.resume)
}
func (dbp *Process) resume() error {
return dbp.run(func() error {
thread, err := dbp.trapWait(-1)
if err != nil {
return err
@ -407,6 +404,7 @@ func (dbp *Process) resume() error {
}
}
return nil
})
}
// Single step, will execute a single instruction.