[DWARF] - Emit the correct value for DW_AT_addr_base.
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. Patch fixes the issue. Differential revision: https://reviews.llvm.org/D52168 llvm-svn: 342635
Showing
- llvm/lib/CodeGen/AsmPrinter/AddressPool.cpp 7 additions, 5 deletionsllvm/lib/CodeGen/AsmPrinter/AddressPool.cpp
- llvm/lib/CodeGen/AsmPrinter/AddressPool.h 6 additions, 0 deletionsllvm/lib/CodeGen/AsmPrinter/AddressPool.h
- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp 7 additions, 5 deletionsllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
- llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp 7 additions, 0 deletionsllvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
- llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h 3 additions, 0 deletionsllvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
- llvm/test/DebugInfo/PowerPC/tls-fission.ll 1 addition, 0 deletionsllvm/test/DebugInfo/PowerPC/tls-fission.ll
- llvm/test/DebugInfo/X86/debug_addr.ll 1 addition, 1 deletionllvm/test/DebugInfo/X86/debug_addr.ll
- llvm/test/DebugInfo/X86/tls.ll 1 addition, 0 deletionsllvm/test/DebugInfo/X86/tls.ll
Loading
Please register or sign in to comment