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

cmd/compile: set prologue_end on every arch #36612

Open
derekparker opened this issue Jan 16, 2020 · 6 comments
Open

cmd/compile: set prologue_end on every arch #36612

derekparker opened this issue Jan 16, 2020 · 6 comments
Assignees
Milestone

Comments

@derekparker
Copy link
Contributor

@derekparker derekparker commented Jan 16, 2020

As of Go 1.11 and commit 7bac2a9 support was added to put information about the end of the function prologue into the produced DWARF information, however it currently only works for x86.

Ideally the DWARF information produced is consistent across arches. In Delve if this information is not present we have to disassemble the function in order to pattern match known function prologues in order to skip them. This is undesirable to say the least and I would like to delete that code.

Opening this issue to track adding prologue_end to the DWARF information produced on every arch.

@derekparker
Copy link
Contributor Author

@derekparker derekparker commented Jan 16, 2020

@dr2chase dr2chase self-assigned this Jan 22, 2020
@dr2chase dr2chase added this to the Go1.15 milestone Jan 22, 2020
@heschik
Copy link
Contributor

@heschik heschik commented Apr 24, 2020

https://golang.org/cl/223297 did part of this. Any more planned for 1.15?

@heschik
Copy link
Contributor

@heschik heschik commented Apr 24, 2020

...though that CL isn't merged yet.

@dr2chase
Copy link
Contributor

@dr2chase dr2chase commented Apr 24, 2020

Any time you want to +2 it....
It would make sense to maybe get ahead on some other architectures, might help gdb, also depends on where delve is going next.

@odeke-em
Copy link
Member

@odeke-em odeke-em commented May 29, 2020

The CL got merged on May 13th aka 16 days ago. @dr2chase I shall move this to Go1.16 then.

@odeke-em odeke-em modified the milestones: Go1.15, Go1.16 May 29, 2020
@dr2chase
Copy link
Contributor

@dr2chase dr2chase commented May 29, 2020

I'm okay with go1.16. Part of the problem is knowing exactly what's right; because of better-user-experience issues, Delve wants it to be someplace that apparently doesn't match what gdb would expect. (My personal user experience with gdb is so terrible that I would never recommend it to a Go user.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.