mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 12:47:22 +08:00
Various fixes for go 1.22 (#3455)
* proc: correctly update local variables after continue At various point during the execution of the call injection protocol the process is resumed and the call injection goroutine could migrate to a different thread, we must make sure to update our local variables correctly after every point where the target program is resumed. 'fncall122debug_clean' on 'f469a0a5'. * go.mod: update golang.org/x/tools Go 1.22 broke golang.org/x/tools/packages * cmd/dlv: disable TestStaticcheck with go1.22 Go 1.22 is not yet supported by staticcheck.
This commit is contained in:
committed by
GitHub
parent
30b70bc606
commit
e0b4bfbed3
@ -1392,7 +1392,11 @@ func testCallFunction(t *testing.T, grp *proc.TargetGroup, p *proc.Target, tc te
|
||||
}
|
||||
|
||||
if len(retvals) != len(tc.outs) {
|
||||
t.Fatalf("call %q: wrong number of return parameters (%#v)", tc.expr, retvals)
|
||||
t.Logf("call %q: wrong number of return parameters (%#v)", tc.expr, retvals)
|
||||
for i := range retvals {
|
||||
t.Logf("%d: %#v", i, retvals[i])
|
||||
}
|
||||
t.Fatal("previous errors")
|
||||
}
|
||||
|
||||
for i := range retvals {
|
||||
|
||||
Reference in New Issue
Block a user