diff options
author | Zachary Turner <zturner@google.com> | 2018-10-12 23:07:32 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-10-12 23:07:32 +0000 |
commit | 71f484c967ad7b41c9cca6b8c3aef6cf340a8877 (patch) | |
tree | ce79ce1768dd2319340b9a5386cf45adaff8aada /lldb/lit/SymbolFile/NativePDB | |
parent | 49c9ba13041e3353a260d8537923c46b174aa376 (diff) | |
download | bcm5719-llvm-71f484c967ad7b41c9cca6b8c3aef6cf340a8877.tar.gz bcm5719-llvm-71f484c967ad7b41c9cca6b8c3aef6cf340a8877.zip |
Add REQUIRES: lld to SymbolFileNativePDB tests.
llvm-svn: 344431
Diffstat (limited to 'lldb/lit/SymbolFile/NativePDB')
-rw-r--r-- | lldb/lit/SymbolFile/NativePDB/disassembly.cpp | 17 | ||||
-rw-r--r-- | lldb/lit/SymbolFile/NativePDB/simple-breakpoints.cpp | 15 | ||||
-rw-r--r-- | lldb/lit/SymbolFile/NativePDB/source-list.cpp | 27 |
3 files changed, 31 insertions, 28 deletions
diff --git a/lldb/lit/SymbolFile/NativePDB/disassembly.cpp b/lldb/lit/SymbolFile/NativePDB/disassembly.cpp index e0abf65afbd..39dc51876f5 100644 --- a/lldb/lit/SymbolFile/NativePDB/disassembly.cpp +++ b/lldb/lit/SymbolFile/NativePDB/disassembly.cpp @@ -1,4 +1,5 @@ // clang-format off +// REQUIRES: lld // Test that we can show disassembly and source. // RUN: clang-cl /Z7 /GS- /GR- /c /Fo%t.obj -- %s @@ -18,21 +19,21 @@ int main(int argc, char **argv) { // CHECK: (lldb) disassemble --flavor=intel -m -n main -// CHECK: 12 int foo() { return 42; } -// CHECK-NEXT: 13 -// CHECK-NEXT: ** 14 int main(int argc, char **argv) { +// CHECK: 13 int foo() { return 42; } +// CHECK-NEXT: 14 +// CHECK-NEXT: ** 15 int main(int argc, char **argv) { // CHECK: disassembly.cpp.tmp.exe`main: // CHECK-NEXT: disassembly.cpp.tmp.exe[{{.*}}] <+0>: sub rsp, 0x38 // CHECK-NEXT: disassembly.cpp.tmp.exe[{{.*}}] <+4>: mov dword ptr [rsp + 0x34], 0x0 // CHECK-NEXT: disassembly.cpp.tmp.exe[{{.*}}] <+12>: mov qword ptr [rsp + 0x28], rdx // CHECK-NEXT: disassembly.cpp.tmp.exe[{{.*}}] <+17>: mov dword ptr [rsp + 0x24], ecx -// CHECK: ** 15 foo(); -// CHECK: disassembly.cpp.tmp.exe[{{.*}}] <+21>: call {{.*}} ; foo at disassembly.cpp:12 +// CHECK: ** 16 foo(); +// CHECK: disassembly.cpp.tmp.exe[{{.*}}] <+21>: call {{.*}} ; foo at disassembly.cpp:13 // CHECK-NEXT: disassembly.cpp.tmp.exe[{{.*}}] <+26>: xor ecx, ecx // CHECK-NEXT: disassembly.cpp.tmp.exe[{{.*}}] <+28>: mov dword ptr [rsp + 0x20], eax -// CHECK: ** 16 return 0; -// CHECK-NEXT: 17 } -// CHECK-NEXT: 18 +// CHECK: ** 17 return 0; +// CHECK-NEXT: 18 } +// CHECK-NEXT: 19 // CHECK: disassembly.cpp.tmp.exe[{{.*}}] <+32>: mov eax, ecx // CHECK-NEXT: disassembly.cpp.tmp.exe[{{.*}}] <+34>: add rsp, 0x38 // CHECK-NEXT: disassembly.cpp.tmp.exe[{{.*}}] <+38>: ret diff --git a/lldb/lit/SymbolFile/NativePDB/simple-breakpoints.cpp b/lldb/lit/SymbolFile/NativePDB/simple-breakpoints.cpp index 5318b8e0ce3..580a13448df 100644 --- a/lldb/lit/SymbolFile/NativePDB/simple-breakpoints.cpp +++ b/lldb/lit/SymbolFile/NativePDB/simple-breakpoints.cpp @@ -1,4 +1,5 @@ // clang-format off +// REQUIRES: lld // Test that we can set simple breakpoints using PDB on any platform. // RUN: clang-cl /Z7 /GS- /GR- /c /Fo%t.obj -- %s @@ -37,27 +38,27 @@ int main(int argc, char **argv) { // CHECK: Current executable set to '{{.*}}simple-breakpoints.cpp.tmp.exe' (x86_64). // CHECK: (lldb) break set -n main // CHECK: Breakpoint 1: where = simple-breakpoints.cpp.tmp.exe`main + 21 -// CHECK-SAME: at simple-breakpoints.cpp:30 +// CHECK-SAME: at simple-breakpoints.cpp:31 // CHECK: (lldb) break set -n OvlGlobalFn // CHECK: Breakpoint 2: 3 locations. // CHECK: (lldb) break set -n StaticFn // CHECK: Breakpoint 3: where = simple-breakpoints.cpp.tmp.exe`StaticFn + 5 -// CHECK-SAME: at simple-breakpoints.cpp:23 +// CHECK-SAME: at simple-breakpoints.cpp:24 // CHECK: (lldb) break set -n DoesntExist // CHECK: Breakpoint 4: no locations (pending). // CHECK: (lldb) break list // CHECK: Current breakpoints: // CHECK: 1: name = 'main', locations = 1 // CHECK: 1.1: where = simple-breakpoints.cpp.tmp.exe`main + 21 -// CHECK-SAME: at simple-breakpoints.cpp:30 +// CHECK-SAME: at simple-breakpoints.cpp:31 // CHECK: 2: name = 'OvlGlobalFn', locations = 3 // CHECK: 2.1: where = simple-breakpoints.cpp.tmp.exe`OvlGlobalFn + 5 -// CHECK-SAME: at simple-breakpoints.cpp:12 +// CHECK-SAME: at simple-breakpoints.cpp:13 // CHECK: 2.2: where = simple-breakpoints.cpp.tmp.exe`OvlGlobalFn -// CHECK-SAME: at simple-breakpoints.cpp:15 +// CHECK-SAME: at simple-breakpoints.cpp:16 // CHECK: 2.3: where = simple-breakpoints.cpp.tmp.exe`OvlGlobalFn + 17 -// CHECK-SAME: at simple-breakpoints.cpp:19 +// CHECK-SAME: at simple-breakpoints.cpp:20 // CHECK: 3: name = 'StaticFn', locations = 1 // CHECK: 3.1: where = simple-breakpoints.cpp.tmp.exe`StaticFn + 5 -// CHECK-SAME: at simple-breakpoints.cpp:23 +// CHECK-SAME: at simple-breakpoints.cpp:24 // CHECK: 4: name = 'DoesntExist', locations = 0 (pending) diff --git a/lldb/lit/SymbolFile/NativePDB/source-list.cpp b/lldb/lit/SymbolFile/NativePDB/source-list.cpp index b176d2b3db9..c5f320a33f0 100644 --- a/lldb/lit/SymbolFile/NativePDB/source-list.cpp +++ b/lldb/lit/SymbolFile/NativePDB/source-list.cpp @@ -1,4 +1,5 @@ // clang-format off +// REQUIRES: lld // Test that we can set display source of functions. // RUN: clang-cl /Z7 /GS- /GR- /c /Fo%t.obj -- %s @@ -26,17 +27,17 @@ int main(int argc, char **argv) { // CHECK: (lldb) source list -n main // CHECK: File: {{.*}}source-list.cpp -// CHECK: 10 -// CHECK: 11 // Some context lines before -// CHECK: 12 // the function. -// CHECK: 13 +// CHECK: 11 +// CHECK: 12 // Some context lines before +// CHECK: 13 // the function. // CHECK: 14 -// CHECK: 15 int main(int argc, char **argv) { -// CHECK: 16 // Here are some comments. -// CHECK: 17 // That we should print when listing source. -// CHECK: 18 return 0; -// CHECK: 19 } -// CHECK: 20 -// CHECK: 21 // Some context lines after -// CHECK: 22 // the function. -// CHECK: 23 +// CHECK: 15 +// CHECK: 16 int main(int argc, char **argv) { +// CHECK: 17 // Here are some comments. +// CHECK: 18 // That we should print when listing source. +// CHECK: 19 return 0; +// CHECK: 20 } +// CHECK: 21 +// CHECK: 22 // Some context lines after +// CHECK: 23 // the function. +// CHECK: 24 |