mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 12:05:21 +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
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user