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:
Alessandro Arzilli
2023-02-22 18:26:28 +01:00
committed by GitHub
parent 3d6730d12e
commit 37e44bf603
26 changed files with 1391 additions and 829 deletions

View File

@ -36,8 +36,7 @@ func TestIssue419(t *testing.T) {
errChan := make(chan error, 2)
// SIGINT directed at the inferior should be passed along not swallowed by delve
withTestProcess("issue419", t, func(p *proc.Target, fixture protest.Fixture) {
grp := proc.NewGroup(p)
withTestProcess("issue419", t, func(p *proc.Target, grp *proc.TargetGroup, fixture protest.Fixture) {
setFunctionBreakpoint(p, t, "main.main")
assertNoError(grp.Continue(), t, "Continue()")
resumeChan := make(chan struct{}, 1)