These DWARF routines were previously only used for Mach-O.
yaml2obj can handle these DWARF sections, but prior to this
change obj2yaml would not emit them (insted it would just
emit the raw bytes of the .debug_* sections).
Details
Details
- Reviewers
Higuoxing jhenderson
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
As you see, the original DWARF parser is buggy and lacking of tests, so we haven't employed it in elf2yaml. You might need to modify the parser before adding it to elf2yaml. Could you please split this patch into several small patches and add some tests for it? Test cases for DWARF of elf2yaml are in llvm/test/tools/obj2yaml/ELF/DWARF (https://github.com/llvm/llvm-project/tree/main/llvm/test/tools/obj2yaml/ELF/DWARF).