[PATCH] D72828: [DWARF5] Added support for emission of debug_macro section.

Sourabh Singh Tomar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 02:55:47 PST 2020


SouraVX created this revision.
SouraVX added reviewers: dblaikie, aprantl, probinson, labath.
SouraVX added projects: debug-info, LLVM.
Herald added subscribers: llvm-commits, aheejin, hiraditya.

This patch implements support for emission of following DWARFv5 macro forms

1. DW_MACRO_start_file
2. DW_MACRO_end_file
3. DW_MACRO_define_strp
4. DW_MACRO_undef_strp.

Corresponding dumping of section contents will be done in separate patch[filing review soon to have better discussion]. This is based on premises that, existing llvm-dwarfdump macro dumping requires refactoring to accommodate macro section dumping. That may take time.

Testing: I've tested/verified dumping of this debug_macro section using OBJDUMP and checked the corresponding macro expansion using LLDB and GDB.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72828

Files:
  llvm/include/llvm/BinaryFormat/Dwarf.h
  llvm/include/llvm/DebugInfo/DWARF/DWARFObject.h
  llvm/include/llvm/MC/MCObjectFileInfo.h
  llvm/lib/BinaryFormat/Dwarf.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/lib/MC/MCObjectFileInfo.cpp
  llvm/test/DebugInfo/MIR/X86/dbg-stack-value-range.mir
  llvm/test/DebugInfo/X86/stringpool.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72828.238440.patch
Type: text/x-patch
Size: 16326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200116/207f3391/attachment.bin>


More information about the llvm-commits mailing list