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

DDR: support DWARF version 5 #7272

Merged
merged 1 commit into from Feb 23, 2024
Merged

DDR: support DWARF version 5 #7272

merged 1 commit into from Feb 23, 2024

Conversation

keithc-ca
Copy link
Member

@keithc-ca keithc-ca commented Feb 22, 2024

  • generalize getConstValue() and use it in more places
  • add (implicit) support for DW_FORM_implicit_const

This change, together with a modification of OpenJ9 to stop avoiding DWARF version 5, allowed me to build OpenJ9 for Linux on s390x and x86_64.

This may fix #6135.

@keithc-ca
Copy link
Member Author

Put in draft mode while I verify that build environments provide DW_FORM_implicit_const in dwarf.h (or libdwarf/dwarf.h).

* generalize getConstValue() and use it in more places

* add (implicit) support for DW_FORM_implicit_const

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
@keithc-ca
Copy link
Member Author

In an earlier state of this there was an explicit use of DW_FORM_implicit_const which wouldn't work on build systems with older DWARF header files. That reference is no longer present, so it should build on such systems.

A sufficiently recent version of libdwarf.so will be required to process files containing DWARF version 5 information, but that's outside the scope of this repository.

@babsingh Would you mind reviewing this, please?

@keithc-ca keithc-ca marked this pull request as ready for review February 23, 2024 16:44
@babsingh
Copy link
Contributor

jenkins build all

Copy link
Contributor

@babsingh babsingh left a comment

Choose a reason for hiding this comment

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

OSX PR build failed due to a known and unrelated issue: #7181.

@babsingh babsingh merged commit 04076a0 into eclipse:master Feb 23, 2024
16 of 18 checks passed
@keithc-ca keithc-ca deleted the dwarf5 branch February 23, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support DWARF 5
2 participants