delve/_fixtures/deferstack.go
aarzilli b59032516e proc,service,terminal: eval expressions in the scope of a deferred call
Add ability to evaluate variables on the scope of a deferred call's
argument frame.
2018-10-16 08:40:07 -07:00

33 lines
270 B
Go

package main
import "runtime"
func f1() {
}
func f2(a int8, b int32) {
}
func f3() {
}
func call1() {
defer f2(1, -1)
defer f1()
call2()
}
func call2() {
defer f3()
defer f2(42, 61)
call3()
}
func call3() {
runtime.Breakpoint()
}
func main() {
call1()
}