[PATCH] D52168: [DWARF] - Emit the correct value for DW_AT_addr_base.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 17 05:48:59 PDT 2018


grimar created this revision.
grimar added reviewers: aprantl, dblaikie, probinson.
Herald added a subscriber: JDevlieghere.

Currently, we emit DW_AT_addr_base that points to the beginning of
the .debug_addr section. That is not correct for the DWARF5 case because address
table contains the header and the attribute should point to the first entry
following the header.

This is currently the reason why LLDB does not work with such executables correctly.


https://reviews.llvm.org/D52168

Files:
  lib/CodeGen/AsmPrinter/AddressPool.cpp
  lib/CodeGen/AsmPrinter/AddressPool.h
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfFile.h
  lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  lib/CodeGen/AsmPrinter/DwarfUnit.h
  test/DebugInfo/X86/debug_addr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52168.165747.patch
Type: text/x-patch
Size: 6695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180917/b983b9f0/attachment.bin>


More information about the llvm-commits mailing list