1 // XFAIL: target-arm && linux-gnu 2 // clang-format off 3 // REQUIRES: lld 4 5 // Test that we can set simple breakpoints using PDB on any platform. 6 // RUN: %build --compiler=clang-cl --nodefaultlib -o %t.exe -- %s 7 // RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -f %t.exe -s \ 8 // RUN: %p/Inputs/break-by-line.lldbinit | FileCheck %s 9 10 // This is a separate test from break-by-function.cpp because this test is 11 // sensitive to edits in the source file. 12 13 namespace NS { 14 int NamespaceFn(int X) { 15 return X + 42; 16 } 17 } 18 19 int main(int argc, char **argv) { 20 return NS::NamespaceFn(argc); 21 } 22 23 24 // CHECK: (lldb) target create "{{.*}}break-by-line.cpp.tmp.exe" 25 // CHECK: Current executable set to '{{.*}}break-by-line.cpp.tmp.exe' 26 // CHECK: (lldb) break set -f break-by-line.cpp -l 15 27 // CHECK: Breakpoint 1: where = break-by-line.cpp.tmp.exe`NS::NamespaceFn + {{[0-9]+}} at break-by-line.cpp:15 28