pkg/proc: Move proc exec funcs to Target methods

This commit is contained in:
Derek Parker
2020-03-24 09:16:58 -07:00
committed by Alessandro Arzilli
parent 8bb93e9ae1
commit ccd438c65f
9 changed files with 266 additions and 266 deletions

View File

@ -12,7 +12,7 @@ func TestGoroutineCreationLocation(t *testing.T) {
protest.AllowRecording(t)
withTestProcess("goroutinestackprog", t, func(p *proc.Target, fixture protest.Fixture) {
bp := setFunctionBreakpoint(p, t, "main.agoroutine")
assertNoError(proc.Continue(p), t, "Continue()")
assertNoError(p.Continue(), t, "Continue()")
gs, _, err := proc.GoroutinesInfo(p, 0, 0)
assertNoError(err, t, "GoroutinesInfo")
@ -39,6 +39,6 @@ func TestGoroutineCreationLocation(t *testing.T) {
}
p.ClearBreakpoint(bp.Addr)
proc.Continue(p)
p.Continue()
})
}