mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 12:59:01 +08:00
Updates for go1.18beta1 (#2831)
* go.mod: update golang.org/x/tools to v0.1.8 Fixes TestGeneratedDoc on go1.18 * TeamCity: bump test matrix Add 1.18 to test matrix. Remove 1.15 from test matrix and from support range. * proc,tests: update for regabi on arm64 and 386 Make sure that stacktrace registers always contain the PC register of the current frame, even though the debug_frame rules might not specify it on architectures that use a link register. The PC register is needed to look up loclist entries for variable evaluation. * goversion: bump maximum supported Go version to 1.18 * proc: disable asyncpreempt on linux/arm64 Asyncpreempt on linux/arm64 can sometimes restart a sequence of instructions which will make breakpoint appear to be hit twice in some cases.
This commit is contained in:
committed by
GitHub
parent
07bcf0cb13
commit
4a94b3eff2
@ -2387,6 +2387,11 @@ func TestGlobalScopeAndVariables(t *testing.T) {
|
||||
[]onBreakpoint{{
|
||||
// Stop at line 36
|
||||
execute: func() {
|
||||
if runtime.GOARCH == "386" && goversion.VersionAfterOrEqual(runtime.Version(), 1, 18) {
|
||||
client.StepInRequest(1)
|
||||
client.ExpectStepInResponse(t)
|
||||
client.ExpectStoppedEvent(t)
|
||||
}
|
||||
client.StackTraceRequest(1, 0, 20)
|
||||
stack := client.ExpectStackTraceResponse(t)
|
||||
checkStackFramesExact(t, stack, "main.main", 36, 1000, 3, 3)
|
||||
@ -2454,6 +2459,12 @@ func TestRegistersScopeAndVariables(t *testing.T) {
|
||||
[]onBreakpoint{{
|
||||
// Stop at line 36
|
||||
execute: func() {
|
||||
if runtime.GOARCH == "386" && goversion.VersionAfterOrEqual(runtime.Version(), 1, 18) {
|
||||
client.StepInRequest(1)
|
||||
client.ExpectStepInResponse(t)
|
||||
client.ExpectStoppedEvent(t)
|
||||
}
|
||||
|
||||
client.StackTraceRequest(1, 0, 20)
|
||||
stack := client.ExpectStackTraceResponse(t)
|
||||
checkStackFramesExact(t, stack, "main.main", 36, 1000, 3, 3)
|
||||
|
||||
Reference in New Issue
Block a user