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-dwp.test
David Blaikie 4226881aba Mostly revert 252842 due to failures on some buildbots.
I imagine there's some UB in here somewhere, though Valgrind doesn't
seem to have picked it up (not sure if I have a working asan build right
now to test there).

GDB bot seems to be crashing:
http://lab.llvm.org:8011/builders/clang-x86_64-ubuntu-gdb-75/builds/26267/steps/check-all/logs/FAIL%3A%20LLVM%3A%3Adwarfdump-dwp.test

Hexagon ELF bot is, presumably, just getting different output:
http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/32927/steps/check-all/logs/FAIL%3A%20LLVM%3A%3Adwarfdump-dwp.test

llvm-svn: 252859
2015-11-12 06:33:14 +00:00

26 lines
592 B
Plaintext

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 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: .debug_tu_index contents:
; CHECK-NEXT: Index header:
; CHECK-NEXT: version: 2
; CHECK-NEXT: columns: 4
; CHECK-NEXT: units: 2
; CHECK-NEXT: buckets: 16
; TODO: use the index section offset info to correctly dump debug_info