-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: generated DWARF inlining info #22080
Comments
Change https://golang.org/cl/66910 mentions this issue: |
Updates golang/go#22080 Change-Id: I9a60d1751397e944b7a80e067e4dadf4ec405bce Reviewed-on: https://go-review.googlesource.com/66910 Reviewed-by: Than McIntosh <thanm@google.com>
Update: it turns out that DW_AT_call_file and DW_AT_call_line attributes in the DW_TAG_inlined_subroutine DIE are more or less required by GDB (without them, it ignores the inlined call records). I am updating the proposal to reflect this requirement. |
Change https://golang.org/cl/72750 mentions this issue: |
Update the proposal document to reflect the fact that DW_AT_call_file and DW_AT_call_line attributes are required for any generated DW_TAG_inlined_subroutine DIEs. This isn't spelled out as required in the standard, but it seems to be enforced by GDB, so the compiler will need to emit these. Updates golang/go#22080 Change-Id: I467773580ceff7ce4d36ec919685909d43e8addf Reviewed-on: https://go-review.googlesource.com/72750 Reviewed-by: Austin Clements <austin@google.com>
Change https://golang.org/cl/75550 mentions this issue: |
Compiler and linker changes to support DWARF inlined instances, see https://go.googlesource.com/proposal/+/HEAD/design/22080-dwarf-inlining.md for design details. This functionality is gated via the cmd/compile option -gendwarfinl=N, where N={0,1,2}, where a value of 0 disables dwarf inline generation, a value of 1 turns on dwarf generation without tracking of formal/local vars from inlined routines, and a value of 2 enables inlines with variable tracking. Updates #22080 Change-Id: I69309b3b815d9fed04aebddc0b8d33d0dbbfad6e Reviewed-on: https://go-review.googlesource.com/75550 Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
Is there anything left to do here? |
No, probably best to close this out. I have a few ideas on how to improve testing, but those can be addressed separately. |
Tracking issue for adding DWARF inline info support to the compiler.
This issue is a placeholder -- a link to the design document will follow in the next day or two.
See also related:
mid-stack inlining tracking issue #19348
mid-stack inlining proposal
The text was updated successfully, but these errors were encountered: