OSDN Git Service

[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)
commit45b741c841c60000dba4ff0d31810c6e66e7d446
tree6d9261b588666da11f9ec819b07b31009ab232c1
parent5586629f295ea20c91eada84f30b895c974cee4f
[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

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