summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-11-12 01:41:52 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-11-12 01:41:52 +0000
commit5b9bf49c6f6d6016c912719a035e527f56c3a3c3 (patch)
treefea2ce21e33cbde1f82a49f3f34fd02b62515675 /llvm/test/DebugInfo
parent9815be30426035d1c4e457c628952c4edef9124e (diff)
downloadbcm5719-llvm-5b9bf49c6f6d6016c912719a035e527f56c3a3c3.tar.gz
bcm5719-llvm-5b9bf49c6f6d6016c912719a035e527f56c3a3c3.zip
dwarfdump: Dump the contents of DWP indexes
llvm-svn: 252842
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/Inputs/dwarfdump-dwp.x86_64.obin1904 -> 1976 bytes
-rw-r--r--llvm/test/DebugInfo/dwarfdump-dwp.test25
2 files changed, 12 insertions, 13 deletions
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-dwp.x86_64.o b/llvm/test/DebugInfo/Inputs/dwarfdump-dwp.x86_64.o
index 3588369af47..2b7ed526ca9 100644
--- a/llvm/test/DebugInfo/Inputs/dwarfdump-dwp.x86_64.o
+++ b/llvm/test/DebugInfo/Inputs/dwarfdump-dwp.x86_64.o
Binary files differ
diff --git a/llvm/test/DebugInfo/dwarfdump-dwp.test b/llvm/test/DebugInfo/dwarfdump-dwp.test
index c3b8e1c4f9f..953a58cb4af 100644
--- a/llvm/test/DebugInfo/dwarfdump-dwp.test
+++ b/llvm/test/DebugInfo/dwarfdump-dwp.test
@@ -5,22 +5,21 @@ RUN: llvm-dwarfdump %p/Inputs/dwarfdump-dwp.x86_64.o | FileCheck %s
; struct foo { };
; foo a;
; b.cpp:
-; struct foo { };
-; foo b;
+; struct bar { };
+; bar b;
; CHECK: .debug_cu_index contents:
-; CHECK-NEXT: Index header:
-; CHECK-NEXT: version: 2
-; CHECK-NEXT: columns: 4
-; CHECK-NEXT: units: 2
-; CHECK-NEXT: buckets: 16
+; CHECK-NEXT: version = 2 slots = 16
+; CHECK: Index Signature INFO ABBREV LINE STR_OFFSETS
+; CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------
+; CHECK-NEXT: 8 0x03c30756e2d45008 [0x00000000, 0x00000045) [0x00000000, 0x00000067) [0x00000000, 0x00000026) [0x00000000, 0x00000016)
+; CHECK-NEXT: 12 0x9aeb3a61ed48510c [0x00000045, 0x00000090) [0x00000067, 0x00000134) [0x00000026, 0x00000052) [0x00000016, 0x00000032)
; CHECK: .debug_tu_index contents:
-; CHECK-NEXT: Index header:
-; CHECK-NEXT: version: 2
-; CHECK-NEXT: columns: 4
-; CHECK-NEXT: units: 1
-; CHECK-NEXT: buckets: 16
+; CHECK-NEXT: version = 2 slots = 16
+; CHECK: Index Signature TYPES ABBREV LINE STR_OFFSETS
+; CHECK-NEXT: ----- ------------------ ------------------------ ------------------------ ------------------------ ------------------------
+; CHECK-NEXT: 8 0x1d02f3be30cc5688 [0x00000036, 0x00000072) [0x00000067, 0x00000134) [0x00000026, 0x00000052) [0x00000016, 0x00000032)
+; CHECK-NEXT: 12 0x3875c0e21cda63fc [0x00000000, 0x00000036) [0x00000000, 0x00000067) [0x00000000, 0x00000026) [0x00000000, 0x00000016)
-; TODO: dump the index contents
; TODO: use the index section offset info to correctly dump debug_info
OpenPOWER on IntegriCloud