delve/_fixtures/asmnilptr/main.go
Alessandro Arzilli b8a9ae26f6
proc: fix signal handling during stepping (#2803)
Fix signal handling during thread single stepping so that signals that
are generated by executing the current instruction are immediately
propagated to the inferior, while signals other signals sent to the
thread are delayed until the full resume happens.

Fixes a bug where a breakpoint set on an instruction that causes a
SIGSEGV would make Delve hang and a bug where signals received during
single step would make it look like an instruction is executed twice.

Fixes #2801
Fixes #2792
2021-12-07 09:21:53 -08:00

10 lines
102 B
Go

package main
import "fmt"
func asmFunc(*int) int
func main() {
fmt.Printf("%d\n", asmFunc(nil))
}