mirror of
https://github.com/go-delve/delve.git
synced 2025-11-03 05:47:34 +08:00
proc,proc/native: adds ability to automatically debug child processes (#3165)
Adds the ability to automatically debug child processes executed by the target to the linux native backend. This commit does not contain user interface or API to access this functionality. Updates #2551
This commit is contained in:
committed by
GitHub
parent
3d6730d12e
commit
37e44bf603
@ -10,9 +10,9 @@ import (
|
||||
|
||||
func TestGoroutineCreationLocation(t *testing.T) {
|
||||
protest.AllowRecording(t)
|
||||
withTestProcess("goroutinestackprog", t, func(p *proc.Target, fixture protest.Fixture) {
|
||||
withTestProcess("goroutinestackprog", t, func(p *proc.Target, grp *proc.TargetGroup, fixture protest.Fixture) {
|
||||
bp := setFunctionBreakpoint(p, t, "main.agoroutine")
|
||||
assertNoError(p.Continue(), t, "Continue()")
|
||||
assertNoError(grp.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)
|
||||
p.Continue()
|
||||
grp.Continue()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user