Improve RequestManualStop

This commit is contained in:
Derek Parker
2015-04-25 14:25:48 -05:00
parent da688b8184
commit fa9fe1a679
2 changed files with 5 additions and 1 deletions

View File

@ -173,6 +173,10 @@ func (dbp *DebuggedProcess) RequestManualStop() error {
if err != nil { if err != nil {
return err return err
} }
err = dbp.Halt()
if err != nil {
return err
}
dbp.running = false dbp.running = false
return nil return nil
} }

View File

@ -107,7 +107,7 @@ func TestHalt(t *testing.T) {
for _, th := range p.Threads { for _, th := range p.Threads {
_, err := th.Registers() _, err := th.Registers()
if err != nil { if err != nil {
t.Error(err) t.Error(err, th.Id)
} }
} }
}) })