mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 20:20:40 +08:00
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.
This commit is contained in:
@ -76,7 +76,7 @@ type LocationFinder interface {
|
||||
}
|
||||
|
||||
func findLocationHelper(t *testing.T, c LocationFinder, loc string, shouldErr bool, count int, checkAddr uint64) []uint64 {
|
||||
locs, err := c.FindLocation(api.EvalScope{-1, 0}, loc)
|
||||
locs, err := c.FindLocation(api.EvalScope{-1, 0, 0}, loc)
|
||||
t.Logf("FindLocation(\"%s\") → %v\n", loc, locs)
|
||||
|
||||
if shouldErr {
|
||||
|
||||
Reference in New Issue
Block a user