Files
delve/_fixtures/issue3310.go
Alessandro Arzilli 06b95cdd34 proc: allow access to thread registers after a function call (#3908)
After a call injection sequence terminates allow the evaluator to
access thread registers again so that variables stored in registers can
be used as arguments.

Fixes #3310
2025-01-24 08:58:48 -08:00

19 lines
219 B
Go

package main
import (
"fmt"
"reflect"
)
var i = 2
var val = reflect.ValueOf(i)
func reflectFunc(value reflect.Value) {
fmt.Printf("%s\n", value.Type().Name())
}
func main() {
reflectFunc(val)
fmt.Println(&i)
}