[dwarfdump] Add verbose output for .debug-line section
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 21 Sep 2017 20:15:30 +0000 (20:15 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 21 Sep 2017 20:15:30 +0000 (20:15 +0000)
commit26f9a0c5297ec09a2b057bcb818d64c9414f5f01
tree862dc9da36ec8147dc4d43aa58ac34de69b309b5
parent05eac276776d51323d36d2d29c4d2f8482fc75c3
[dwarfdump] Add verbose output for .debug-line section

This patch adds dumping of line table instructions as well as the final
state at each specified pc value in verbose mode. This is essentially
the same as the default in Darwin's dwarfdump. Dumping the actual line
table opcodes can be particularly useful for something like debugging a
bad `.debug_line` section.

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

llvm-svn: 313910
18 files changed:
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/test/DebugInfo/Generic/unconditional-branch.ll
llvm/test/DebugInfo/MIR/X86/empty-inline.mir
llvm/test/DebugInfo/Mips/delay-slot.ll
llvm/test/MC/ARM/dwarf-asm-multiple-sections-dwarf-2.s
llvm/test/MC/ARM/dwarf-asm-multiple-sections.s
llvm/test/MC/ARM/dwarf-asm-nonstandard-section.s
llvm/test/MC/ARM/dwarf-asm-single-section.s
llvm/test/MC/MachO/gen-dwarf.s
llvm/test/tools/dsymutil/X86/basic-linking-bundle.test
llvm/test/tools/dsymutil/X86/basic-linking-x86.test
llvm/test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test
llvm/test/tools/dsymutil/X86/basic-lto-linking-x86.test
llvm/test/tools/dsymutil/X86/multiple-inputs.test
llvm/test/tools/llvm-dwarfdump/X86/brief.s
llvm/test/tools/llvm-dwarfdump/X86/verbose.test [new file with mode: 0644]