delve/_fixtures/issue2086.go
Alessandro Arzilli 54664c54db
proc: use file:line at entry point in skipAutogeneratedWrappersOut (#2089)
The file:line information for the entrypoint is more acccurate than the
file:line information at a return point, which could be affected by a
compiler bug.

Fixes #2086
2020-07-21 13:44:04 -07:00

19 lines
160 B
Go

package main
import (
"runtime"
)
var i int
type T struct{}
func (t T) m() { stop() }
func stop() {
runtime.Breakpoint()
i++
}
func main() { T{}.m() }