This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Support for DWARF-5 atomic types
ClosedPublic

Authored by teemperor on Dec 8 2019, 11:52 PM.

Details

Summary

This patch adds support for atomic types (DW_TAG_atomic_type) to LLDB. It's mostly just filling out all the switch-statements that didn't implement Atomic case with the usual boilerplate.

Thanks Pavel for writing the test case.

Diff Detail

Event Timeline

teemperor created this revision.Dec 8 2019, 11:52 PM
Herald added a project: Restricted Project. · View Herald Transcript
labath accepted this revision.Dec 9 2019, 1:11 AM

Looks pretty straight-forward. When I wrote this test, I was expecting that an "atomic struct" would be "invalid input". Given that this is actually a thing, it would be nice to add some members to the struct to show that can be displayed too, but I can also do that afterwards...

lldb/test/Shell/SymbolFile/DWARF/dwarf5-atomic.s
25–26

Looks like I didn't remote tabs here. Could you please fix this before submitting?

This revision is now accepted and ready to land.Dec 9 2019, 1:11 AM
teemperor updated this revision to Diff 232772.Dec 9 2019, 1:35 AM
  • Fix test formatting.
This revision was automatically updated to reflect the committed changes.