Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes for go 1.22 #3455

Merged
merged 3 commits into from
Sep 19, 2023
Merged

Conversation

aarzilli
Copy link
Member

@aarzilli aarzilli commented Aug 7, 2023

  • call injection fixes
  • updated golang.org/x/tools/packages to support go1.22
  • disabled staticcheck test with go1.22 because it does not currently support it

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 1.22 broke golang.org/x/tools/packages
Go 1.22 is not yet supported by staticcheck.
@aarzilli aarzilli force-pushed the fncall122debug_clean branch from 618c73f to 4f8cf0a Compare September 8, 2023 09:20
@aarzilli aarzilli changed the title [WIP] fixes for function call injection in 1.22 Various fixes for go 1.22 Sep 8, 2023
@aarzilli
Copy link
Member Author

aarzilli commented Sep 8, 2023

The call injection fixes actually also affect problems with versions prior to go1.22.

@aarzilli
Copy link
Member Author

aarzilli commented Sep 8, 2023

cc @hyangah TestFatalThrowBreakpoint of server/dap is currently failing with go1.22 because optimizations make the variable holding the error reason unreadable at entry. What do you think we should do about it?

@thanm
Copy link
Contributor

thanm commented Sep 8, 2023

I commented on the issue -- golang/go#62523 (comment)

I think there may need to be a Delve change here if possible, unless we want to roll back or change CL http://go.dev/cl/c/go/+/390420 in some way.

Copy link
Member

@derekparker derekparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@derekparker derekparker merged commit e0b4bfb into go-delve:master Sep 19, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants