dwarfdump: Dump the contents of DWP indexes
[oota-llvm.git] / test / DebugInfo / dwarfdump-dwp.test
1 RUN: llvm-dwarfdump %p/Inputs/dwarfdump-dwp.x86_64.o | FileCheck %s
2
3 ; Testing the following simple dwp file:
4 ; a.cpp:
5 ;   struct foo { };
6 ;   foo a;
7 ; b.cpp:
8 ;   struct bar { };
9 ;   bar b;
10
11 ; CHECK: .debug_cu_index contents:
12 ; CHECK-NEXT: version = 2 slots = 16
13 ; CHECK:      Index Signature          INFO                     ABBREV                   LINE                     STR_OFFSETS            
14 ; CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------
15 ; CHECK-NEXT:     8 0x03c30756e2d45008 [0x00000000, 0x00000045) [0x00000000, 0x00000067) [0x00000000, 0x00000026) [0x00000000, 0x00000016)
16 ; CHECK-NEXT:    12 0x9aeb3a61ed48510c [0x00000045, 0x00000090) [0x00000067, 0x00000134) [0x00000026, 0x00000052) [0x00000016, 0x00000032)
17
18 ; CHECK: .debug_tu_index contents:
19 ; CHECK-NEXT: version = 2 slots = 16
20 ; CHECK:      Index Signature          TYPES                    ABBREV                   LINE                     STR_OFFSETS
21 ; CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------
22 ; CHECK-NEXT:     8 0x1d02f3be30cc5688 [0x00000036, 0x00000072) [0x00000067, 0x00000134) [0x00000026, 0x00000052) [0x00000016, 0x00000032)
23 ; CHECK-NEXT:    12 0x3875c0e21cda63fc [0x00000000, 0x00000036) [0x00000000, 0x00000067) [0x00000000, 0x00000026) [0x00000000, 0x00000016)
24
25 ; TODO: use the index section offset info to correctly dump debug_info