[Lldb-commits] [lldb] [llvm] [DWARF] Fix DWARTTypePrinter unable to print qualified name for DW_TAG_typedef DIE (PR #117239)

David Blaikie via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 21 16:08:52 PST 2024


dwblaikie wrote:

Rather than a unit test, perhaps this could be tested with llvm-dwarfdump? (I think that's how I tested the DWARFTypePrinter during its initial development) It's a feature improvement to llvm-dwarfdump - being able to print out names better.

I guess most of what I did was more specifically about simplified-template-names roundtripping, which this new typedef case isn't relevant to (typedefs aren't canonical names, don't themselves get simplified/have to be rebuilt).

But the testing was in llvm/test/tools/llvm-dwarfdump/X86/simplified-template-names.s (and there's similar testing in the cross_project_tests and in clang - so adding the test coverage in those places too would be good, if this test file's one that could be used for this patch). I guess maybe this testing all only does "verify" testing, which means it won't print the typedef qualified name you want to test.

In that case, we have some testing for type printing prior to the DWARFTypePrinter work... 

Oh, also - LLVM fixes should be tested in LLVM, not in lldb... 

Probably the most common way to test this would be to add something in llvm/test/DebugInfo/X86/dwarfdump-*.ll 

Oh, this test might be where we test most of this in the past: llvm/test/tools/llvm-dwarfdump/X86/prettyprint_types.s



https://github.com/llvm/llvm-project/pull/117239


More information about the lldb-commits mailing list