[PATCH] D70705: [DebugInfo]Support for debug_macinfo.dwo section in llvm and llvm-dwarfdump.

Sourabh Singh Tomar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 23:11:32 PST 2019


SouraVX created this revision.
SouraVX added reviewers: probinson, dblaikie, aprantl, jini.susan.george, alok.
SouraVX added projects: debug-info, LLVM.
Herald added subscribers: llvm-commits, hiraditya.

This patch adds support for debug_macinfo.dwo section[pre-standardized] to llvm and llvm-dwarfdump.

This is the first patch in direction of debug info WRT to macros.

- This was necessary step forward in direction of debug info WRT to macros. macros section could be huge, so transferring this completely to dwo file reduce the size of executable + GDB also supports this style[loading macinfo.dwo section from dwo file].
- This contains redundancies and require a lot cleanup, So I would like to have some initial thoughts on this.
- Furthermore, once both macinfo /macinfo.dwo are set up, will try construct  DWARF5 macro/macro.dwo on top of this infra, perhaps share/Reuse some common code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70705

Files:
  llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
  llvm/include/llvm/DebugInfo/DWARF/DWARFObject.h
  llvm/include/llvm/MC/MCObjectFileInfo.h
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
  llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
  llvm/lib/MC/MCObjectFileInfo.cpp
  llvm/test/DebugInfo/Inputs/dwarfdump-macro.dwo
  llvm/test/DebugInfo/debugmacinfo-dwo.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70705.231005.patch
Type: text/x-patch
Size: 8799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191126/a8012647/attachment.bin>


More information about the llvm-commits mailing list