mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 03:56:24 +08:00
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
19 lines
219 B
Go
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)
|
|
}
|