delve/_fixtures/issue1795.go
aarzilli adb1746c60 proc: fix inlined stack reading for midstack inlined calls
Due to a bug in the Go compiler midstack inlined calls do not report
their ranges correctly. We can't check if an address is in the range of
a DIE by simply looking at that DIE's range, we should also recursively
check the DIE's children's ranges.

Also fixes the way stacktraces of midstack inlined calls are reported
(they used to be inverted, with the deepest inlined stack frame
reported last).

Fixes #1795
2020-01-10 09:04:48 +01:00

15 lines
178 B
Go

package main
import (
"fmt"
"regexp"
"runtime"
)
func main() {
r := regexp.MustCompile("ab")
runtime.Breakpoint()
out := r.MatchString("blah")
fmt.Printf("%v\n", out)
}