
* 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.
23 lines
235 B
Go
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")
|
|
}
|