mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 12:01:35 +08:00
proc: implement follow exec mode on Windows (#3507)
This commit is contained in:
committed by
GitHub
parent
70f21c9f86
commit
20350611ce
@ -5956,7 +5956,8 @@ func TestStacktraceExtlinkMac(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFollowExec(t *testing.T) {
|
||||
skipUnlessOn(t, "follow exec only supported on linux", "linux")
|
||||
skipOn(t, "follow exec not implemented on freebsd", "freebsd")
|
||||
skipOn(t, "follow exec not implemented on macOS", "darwin")
|
||||
withTestProcessArgs("spawn", t, ".", []string{"spawn", "3"}, 0, func(p *proc.Target, grp *proc.TargetGroup, fixture protest.Fixture) {
|
||||
grp.LogicalBreakpoints[1] = &proc.LogicalBreakpoint{LogicalID: 1, Set: proc.SetBreakpoint{FunctionName: "main.traceme1"}, HitCount: make(map[int64]uint64)}
|
||||
grp.LogicalBreakpoints[2] = &proc.LogicalBreakpoint{LogicalID: 2, Set: proc.SetBreakpoint{FunctionName: "main.traceme2"}, HitCount: make(map[int64]uint64)}
|
||||
@ -6132,7 +6133,8 @@ func TestStepShadowConcurrentBreakpoint(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFollowExecRegexFilter(t *testing.T) {
|
||||
skipUnlessOn(t, "follow exec only supported on linux", "linux")
|
||||
skipOn(t, "follow exec not implemented on freebsd", "freebsd")
|
||||
skipOn(t, "follow exec not implemented on macOS", "darwin")
|
||||
withTestProcessArgs("spawn", t, ".", []string{"spawn", "3"}, 0, func(p *proc.Target, grp *proc.TargetGroup, fixture protest.Fixture) {
|
||||
grp.LogicalBreakpoints[1] = &proc.LogicalBreakpoint{LogicalID: 1, Set: proc.SetBreakpoint{FunctionName: "main.traceme1"}, HitCount: make(map[int64]uint64)}
|
||||
grp.LogicalBreakpoints[2] = &proc.LogicalBreakpoint{LogicalID: 2, Set: proc.SetBreakpoint{FunctionName: "main.traceme2"}, HitCount: make(map[int64]uint64)}
|
||||
|
||||
Reference in New Issue
Block a user