1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/DebugInfo/dwarfdump-ranges.test
Frederic Riss 5be0c9358b [dwarfdump] Dump DW_AT_ranges values inline in the debug_info dump.
The output looks like that:
                      DW_AT_ranges [FORM_data4]    (0x00000000
                         [0x00000001000024a0 - 0x00000001000024c2)
                         [0x0000000100002505 - 0x000000010000268b))

Differential Revision: http://reviews.llvm.org/D5712

llvm-svn: 220466
2014-10-23 04:08:34 +00:00

25 lines
878 B
Plaintext

RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test4.elf-x86-64 | FileCheck %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: 00000000 000000000000062c 0000000000000637
CHECK-NEXT: 00000000 0000000000000637 000000000000063d
CHECK-NEXT: 00000000 <End of list>
CHECK-NEXT: 00000030 0000000000000640 000000000000064b
CHECK-NEXT: 00000030 0000000000000637 000000000000063d
CHECK-NEXT: 00000030 <End of list>