Skip to content

Conversation

@bheath-adobe
Copy link
Collaborator

Description

Hotfixes:

  • Fix for reading correct ref_addr in dwarf v2.
  • Workaround for only reading partial decl_files list.
  • Fix issue with tests not recognizing failed compilations.

Related Issue

#67

Motivation and Context

Workaround for issue.

How Has This Been Tested?

Tests passing.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
- Fix for reading correct ref_addr in dwarf v2.
- Workaround for only reading partial decl_files list.
… recognized because the failure output goes to stderr, which wasn't being read before.
src/dwarf.cpp Outdated
//
// The `declaration` attribute used to be a part of this hash, too. Given that a declaration

// The `declaration` attribute used to be a part of this hash. Given that a declaration
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment about declaration is no longer relevant. I had to pull it from the skip_die portion of the code, but forgot about this comment. can you remove it? I am not sure what to do about the re-introduction of the declaration here as part of the die_hash. Thoughts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So, put it back to how it was a while ago?

bool is_declaration =
        attributes.has_uint(dw::at::declaration) && attributes.uint(dw::at::declaration) == 1;

and include is_declaration in the hash?

Copy link
Contributor

Choose a reason for hiding this comment

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

I have consolidated the calls into a new has_flag_attribute as I am using it elsewhere. So in the hash you can just include has_flag_attribute(attributes, dw::at::declaration).

Copy link
Contributor

@fosterbrereton fosterbrereton left a comment

Choose a reason for hiding this comment

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

These changes LGTM Brandon! Thank you for them. If you decide not to touch the declaration comment that's fine - I can clean it up in a subsequent PR.

@bheath-adobe bheath-adobe merged commit 7c06f50 into main Jan 11, 2024
@bheath-adobe bheath-adobe deleted the bheath/hotfixes branch January 11, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants