diff --git a/proctl/proctl.go b/proctl/proctl.go index d81b422fdaadfed99bc0cdacce9d5d07632535cd..410874c11f6d53c665ce31cdefc11e02de3306ba 100644 --- a/proctl/proctl.go +++ b/proctl/proctl.go @@ -173,6 +173,10 @@ func (dbp *DebuggedProcess) RequestManualStop() error { if err != nil { return err } + err = dbp.Halt() + if err != nil { + return err + } dbp.running = false return nil } diff --git a/proctl/proctl_test.go b/proctl/proctl_test.go index 9fad1c7a27dc073ffc0ec9854f38069d44e71830..49aa48b16e166813b8a6fca20a460467927d82d3 100644 --- a/proctl/proctl_test.go +++ b/proctl/proctl_test.go @@ -107,7 +107,7 @@ func TestHalt(t *testing.T) { for _, th := range p.Threads { _, err := th.Registers() if err != nil { - t.Error(err) + t.Error(err, th.Id) } } })