[Lldb-commits] [lldb] r344431 - Add REQUIRES: lld to SymbolFileNativePDB tests.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 12 16:07:32 PDT 2018
Author: zturner
Date: Fri Oct 12 16:07:32 2018
New Revision: 344431
URL: http://llvm.org/viewvc/llvm-project?rev=344431&view=rev
Log:
Add REQUIRES: lld to SymbolFileNativePDB tests.
Modified:
lldb/trunk/lit/SymbolFile/NativePDB/disassembly.cpp
lldb/trunk/lit/SymbolFile/NativePDB/simple-breakpoints.cpp
lldb/trunk/lit/SymbolFile/NativePDB/source-list.cpp
Modified: lldb/trunk/lit/SymbolFile/NativePDB/disassembly.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/SymbolFile/NativePDB/disassembly.cpp?rev=344431&r1=344430&r2=344431&view=diff
==============================================================================
--- lldb/trunk/lit/SymbolFile/NativePDB/disassembly.cpp (original)
+++ lldb/trunk/lit/SymbolFile/NativePDB/disassembly.cpp Fri Oct 12 16:07:32 2018
@@ -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
Modified: lldb/trunk/lit/SymbolFile/NativePDB/simple-breakpoints.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/SymbolFile/NativePDB/simple-breakpoints.cpp?rev=344431&r1=344430&r2=344431&view=diff
==============================================================================
--- lldb/trunk/lit/SymbolFile/NativePDB/simple-breakpoints.cpp (original)
+++ lldb/trunk/lit/SymbolFile/NativePDB/simple-breakpoints.cpp Fri Oct 12 16:07:32 2018
@@ -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)
Modified: lldb/trunk/lit/SymbolFile/NativePDB/source-list.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/SymbolFile/NativePDB/source-list.cpp?rev=344431&r1=344430&r2=344431&view=diff
==============================================================================
--- lldb/trunk/lit/SymbolFile/NativePDB/source-list.cpp (original)
+++ lldb/trunk/lit/SymbolFile/NativePDB/source-list.cpp Fri Oct 12 16:07:32 2018
@@ -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
More information about the lldb-commits
mailing list