mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
1f6fbfcffc
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
23 lines
566 B
YAML
23 lines
566 B
YAML
## Show that llvm-dwarfdump dumps the .debug_str section when --debug-str is
|
|
## specified.
|
|
|
|
# RUN: yaml2obj %s -o %t.o
|
|
# RUN: llvm-dwarfdump %t.o --debug-str | FileCheck %s
|
|
|
|
# CHECK: .debug_str contents:
|
|
# CHECK-NEXT: 0x00000000: "some string"
|
|
# CHECK-NEXT: 0x0000000c: "foo"
|
|
# CHECK-NEXT: 0x00000010: ""
|
|
# CHECK-NOT: {{.}}
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .debug_str
|
|
Type: SHT_PROGBITS
|
|
Content: '736f6d6520737472696e6700666f6f0000' ## "some string\0foo\0\0"
|