summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-11-11 19:28:21 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-11-11 19:28:21 +0000
commit65a8efe441f466dd044224247ec05b9fe5ea2f26 (patch)
treee07167534858a9e27b6b8a6909430aea761f1cf6 /llvm/test/DebugInfo
parent316b5b250790d86dcd9206f06c792548a07105f4 (diff)
downloadbcm5719-llvm-65a8efe441f466dd044224247ec05b9fe5ea2f26.tar.gz
bcm5719-llvm-65a8efe441f466dd044224247ec05b9fe5ea2f26.zip
dwarfdump: First piece of support for DWP dumping
Just a tiny piece of index dumping - the header in this instance. llvm-svn: 252781
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/Inputs/dwarfdump-dwp.x86_64.obin0 -> 1904 bytes
-rw-r--r--llvm/test/DebugInfo/dwarfdump-dwp.test19
2 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-dwp.x86_64.o b/llvm/test/DebugInfo/Inputs/dwarfdump-dwp.x86_64.o
new file mode 100644
index 00000000000..3588369af47
--- /dev/null
+++ 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
new file mode 100644
index 00000000000..38630f6bb78
--- /dev/null
+++ b/llvm/test/DebugInfo/dwarfdump-dwp.test
@@ -0,0 +1,19 @@
+RUN: llvm-dwarfdump %p/Inputs/dwarfdump-dwp.x86_64.o | FileCheck %s
+
+; Testing the following simple dwp file:
+; a.cpp:
+; struct foo { };
+; foo a;
+; b.cpp:
+; struct foo { };
+; foo b;
+
+; CHECK: .debug_cu_index contents:
+; CHECK: version: 2
+; CHECK: columns: 4
+; CHECK: units: 2
+; CHECK: buckets: 16
+
+; TODO: debug_tu_index
+; TODO: dump the index contents
+; TODO: use the index section offset info to correctly dump debug_info
OpenPOWER on IntegriCloud