1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
llvm-mirror/test/tools/llvm-dwarfdump/debug-frame-dumps-eh-frame-and-debug-frame.yaml
James Henderson 1f6fbfcffc [test][llvm-dwarfdump] Add missing testing for some --debug-* options
A number of the --debug-* options in llvm-dwarfdump are not particularly
well tested. In some cases, the option is only tested as part of testing
another feature, or a specific part of the section that the options
dump. This change adds four new tests to address some of these holes. It
is not aiming to address every hole however.

I kept the --debug-line switch test separate to X86/brief.s because the
latter only considers the parts of the line table that are affected by
verbose printing, thus missing out things like the header and different
values for things like the Line, Column etc registers.

Reviewed by: JDevlieghere

Differential Revision: https://reviews.llvm.org/D71276
2019-12-11 13:42:54 +00:00

16 lines
339 B
YAML

## Show that the --debug-frame switch dumps both .debug_frame and .eh_frame if
## present.
# RUN: yaml2obj %s -o %t
# RUN: llvm-dwarfdump --debug-frame %t | FileCheck %s
# CHECK: .debug_frame contents:
# CHECK: .eh_frame contents:
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64