The values are 8 bytes long in DWARF64, so they should not be cut to uint32_t on dumping.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
If the value to be printed is only 10 digits wide, I think we do not get 6 leading zeros? Is that how we are formatting 64-bit values in general?
llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp | ||
---|---|---|
375–380 | It might be worth adding a test case where not all 16 digits are produced, to show that we don't print leading zeroes. Also, is it worth DWARF32 test cases? Not sure, and maybe not. |
Comment Actions
- Shortened values in the test.
- Added DWARF32 test cases for the same forms. They might be useful later to show the difference in dumping DWARF32/64 variants.
Comment Actions
Reverted a git revision as a follow-up of this in https://github.com/llvm/llvm-project/commit/c5e0967e4cf0f1337bec772949e6cede4c01354b because of:
Newly added test fails:
FAIL: LLVM::DW_OP_call_ref_unexpected.s
http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/28298
It might be worth adding a test case where not all 16 digits are produced, to show that we don't print leading zeroes.
Also, is it worth DWARF32 test cases? Not sure, and maybe not.