1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/DebugInfo/dwarfdump-ranges.test
Wolfgang Pieb c366257a21 [DWARF] Refactoring range list dumping to fold DWARF v4 functionality into v5 handling
Eliminating some duplication of rangelist dumping code at the expense of
some version-dependent code in dump and extract routines.

Reviewer: dblaikie, JDevlieghere, vleschuk

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

llvm-svn: 342048
2018-09-12 12:01:19 +00:00

37 lines
1.6 KiB
Plaintext

RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test4.elf-x86-64 | FileCheck %s
RUN: llvm-dwarfdump --debug-ranges %p/Inputs/dwarfdump-test4.elf-x86-64 | FileCheck -check-prefix=TERSE %s
CHECK: .debug_info contents:
CHECK: DW_TAG_compile_unit
CHECK-NOT: TAG
CHECK: DW_AT_ranges [DW_FORM_data4] (0x00000000
CHECK-NEXT: [0x000000000000062c, 0x0000000000000637)
CHECK-NEXT: [0x0000000000000637, 0x000000000000063d))
CHECK: DW_TAG_compile_unit
CHECK-NOT: TAG
CHECK: DW_AT_ranges [DW_FORM_data4] (0x00000030
CHECK-NEXT: [0x0000000000000640, 0x000000000000064b)
CHECK-NEXT: [0x0000000000000637, 0x000000000000063d))
CHECK: .debug_ranges contents:
CHECK-NEXT: 0x00000000: 0x000000000000062c, 0x0000000000000637 =>
CHECK-SAME: [0x000000000000062c, 0x0000000000000637)
CHECK-NEXT: 0x00000010: 0x0000000000000637, 0x000000000000063d =>
CHECK-SAME: [0x0000000000000637, 0x000000000000063d)
CHECK-NEXT: 0x00000020: 0x0000000000000000, 0x0000000000000000
CHECK-NEXT: 0x00000030: 0x0000000000000640, 0x000000000000064b =>
CHECK-SAME: [0x0000000000000640, 0x000000000000064b)
CHECK-NEXT: 0x00000040: 0x0000000000000637, 0x000000000000063d =>
CHECK-SAME: [0x0000000000000637, 0x000000000000063d)
CHECK-NEXT: 0x00000050: 0x0000000000000000, 0x0000000000000000
TERSE: .debug_ranges contents:
TERSE-NEXT: [0x000000000000062c, 0x0000000000000637)
TERSE-NEXT: [0x0000000000000637, 0x000000000000063d)
TERSE-NEXT: <End of list>
TERSE-NEXT: [0x0000000000000640, 0x000000000000064b)
TERSE-NEXT: [0x0000000000000637, 0x000000000000063d)
TERSE-NEXT: <End of list>