delve/_fixtures/issue594.go
Alessandro Arzilli f6e8fb37a4 proc: changed windows backend to deal with simultaneous breakpoints (#598)
* proc: changed windows backend to deal with simultaneous breakpoints

* bugfix: forgot to add windowsPrologue3 to the prologues list in e4c7df1

* Tolerate errors returned by Stacktrace in TestStacktraceGoroutine.

* bugfix: proc: propagate debug events we don't cause back to the target process

Fixes: #594

* proc: fixed TestStepConcurrentPtr

Implementation of nextInProgress was wrong.
2016-10-21 21:51:34 -07:00

23 lines
235 B
Go

package main
import (
"fmt"
"runtime"
)
func dontsegfault() {
var p *int
func() int {
defer func() {
recover()
}()
return *p
}()
}
func main() {
dontsegfault()
runtime.Breakpoint()
fmt.Println("should stop here")
}