llvm-project/llvm/lib/DebugInfo/DWARF
George Rimar 7e981f330b [llvm-dwarfdump] - Dump the older versions of .eh_frame/.debug_frame correctly.
The issue is the following.

DWARF 2 used version 1 for .debug_frame.
(Appendix G, p. 416 http://dwarfstd.org/doc/DWARF5.pdf)

lib/MC now always sets version 1 for .eh_frame (and sets 1-4 versions for .debug_frame correctly):
https://github.com/llvm-mirror/llvm/blob/master/lib/MC/MCDwarf.cpp#L1530
https://github.com/llvm-mirror/llvm/blob/master/lib/MC/MCDwarf.cpp#L1562
https://github.com/llvm-mirror/llvm/blob/master/lib/MC/MCDwarf.cpp#L1602

In version 1, return_address_register was defined as ubyte, while other versions
switched to uleb128.
(p 62, http://www.dwarfstd.org/doc/dwarf-2.0.0.pdf)

Patch teaches llvm-dwarfdump about this difference.

Differential revision: https://reviews.llvm.org/D54860

llvm-svn: 348242
2018-12-04 10:01:39 +00:00
..
CMakeLists.txt [DWARF] Revert r345546: Refactor range list extraction and dumping 2018-10-31 01:12:58 +00:00
DWARFAbbreviationDeclaration.cpp Remove trailing space 2018-07-30 19:41:25 +00:00
DWARFAcceleratorTable.cpp [DWARF] Refactor DWARF classes to use unified error reporting. NFC. 2018-08-20 09:59:08 +00:00
DWARFAddressRange.cpp [DWARF v5] Support for verbose dumping of .debug_rnglist entries 2018-03-08 20:52:35 +00:00
DWARFCompileUnit.cpp [DWARFv5] Put the DWO ID in its place. 2018-05-22 17:27:31 +00:00
DWARFContext.cpp Revert r347490 as it breaks address sanitizer builds 2018-11-23 17:13:06 +00:00
DWARFDataExtractor.cpp Reland "[DebugInfo] Support DWARF expressions in eh_frame" 2018-03-08 00:46:53 +00:00
DWARFDebugAbbrev.cpp dwarfdump: Delay parsing abbreviations until they're needed 2017-09-19 15:13:55 +00:00
DWARFDebugAddr.cpp [DWARF] Do not use PRIx32 for printing uint64_t values 2018-11-12 22:43:17 +00:00
DWARFDebugArangeSet.cpp [DebugInfo] Unify dumping of address ranges 2018-01-16 11:17:57 +00:00
DWARFDebugAranges.cpp llvm::sort(C.begin(), C.end(), ...) -> llvm::sort(C, ...) 2018-09-27 02:13:45 +00:00
DWARFDebugFrame.cpp [llvm-dwarfdump] - Dump the older versions of .eh_frame/.debug_frame correctly. 2018-12-04 10:01:39 +00:00
DWARFDebugInfoEntry.cpp [DWARF] NFC: DWARFDataExtractor combines relocs with DataExtractor. 2017-06-29 16:52:08 +00:00
DWARFDebugLine.cpp llvm::sort(C.begin(), C.end(), ...) -> llvm::sort(C, ...) 2018-09-27 02:13:45 +00:00
DWARFDebugLoc.cpp Use llvm::copy. NFC 2018-11-17 01:44:25 +00:00
DWARFDebugMacro.cpp [Support] Move syntax highlighting into support 2018-03-09 09:56:24 +00:00
DWARFDebugPubTable.cpp [DWARF] Change pubnames to use DWARFSection instead of StringRef 2018-11-11 18:57:28 +00:00
DWARFDebugRangeList.cpp [DWARF] Revert r345546: Refactor range list extraction and dumping 2018-10-31 01:12:58 +00:00
DWARFDebugRnglists.cpp [llvm-dwarfdump] - Stop printing the bogus empty section name on invalid dwarf. 2018-12-03 10:33:40 +00:00
DWARFDie.cpp [DWARF] Revert r345546: Refactor range list extraction and dumping 2018-10-31 01:12:58 +00:00
DWARFExpression.cpp DebugInfo: Use DW_OP_addrx in DWARFv5 2018-10-20 08:54:05 +00:00
DWARFFormValue.cpp [DWARF][NFC] Refactor a function to return Optional<> instead of bool 2018-10-31 21:05:51 +00:00
DWARFGdbIndex.cpp [DWARF] Support types CU list in .gdb_index dumping 2018-11-05 23:27:53 +00:00
DWARFListTable.cpp [DWARF] Revert r345546: Refactor range list extraction and dumping 2018-10-31 01:12:58 +00:00
DWARFTypeUnit.cpp [DWARF] Factor out a DWARFUnitHeader class. NFC 2018-05-14 20:32:31 +00:00
DWARFUnit.cpp llvm-symbolizer: Avoid calling getFromOffset when the index entry is already available 2018-11-17 05:57:58 +00:00
DWARFUnitIndex.cpp Fix unused variable warning. NFCI. 2018-09-13 10:54:23 +00:00
DWARFVerifier.cpp [DWARFv5] Read and dump multiple .debug_info sections. 2018-11-07 21:39:09 +00:00
LLVMBuild.txt [dwarfdump] Pretty print location expressions and location lists 2017-08-29 21:41:21 +00:00