================ @@ -2,23 +2,58 @@ // Itanium ABI: // RUN: %clang --target=x86_64-pc-linux -gdwarf -c -o %t_linux.o %s -// RUN: %lldb -f %t_linux.o -b -o "target variable mp" | FileCheck %s +// RUN: %lldb -f %t_linux.o -b -o "target variable s1 s2 m1 m2 v1 v2 v3 v4" | FileCheck --check-prefix=CHECK-GNU %s // -// CHECK: (char SI::*) mp = 0x0000000000000000 +// CHECK-GNU: (void (Single1::*)()) s1 = 0x00000000000000000000000000000000 +// CHECK-GNU: (void (Single2::*)()) s2 = 0x00000000000000000000000000000000 +// CHECK-GNU: (void (Multiple1::*)()) m1 = 0x00000000000000000000000000000000 +// CHECK-GNU: (void (Multiple2::*)()) m2 = 0x00000000000000000000000000000000 +// CHECK-GNU: (void (Virtual1::*)()) v1 = 0x00000000000000000000000000000000 +// CHECK-GNU: (void (Virtual2::*)()) v2 = 0x00000000000000000000000000000000 +// CHECK-GNU: (void (Virtual3::*)()) v3 = 0x00000000000000000000000000000000 +// CHECK-GNU: (void (Virtual4::*)()) v4 = 0x00000000000000000000000000000000 // Microsoft ABI: -// RUN: %clang_cl --target=x86_64-windows-msvc -c -gdwarf -o %t_win.obj -- %s -// RUN: lld-link /out:%t_win.exe %t_win.obj /nodefaultlib /entry:main /debug -// RUN: %lldb -f %t_win.exe -b -o "target variable mp" | FileCheck --check-prefix=CHECK-MSVC %s +// RUN: %clang_cl --target=x86_64-windows-msvc -c -gdwarf -o %t_win.obj /GS- -- %s ---------------- weliveindetail wrote:
It tells the compiler not to inject stack protection guards. Otherwise we had to link against system libs. It's used in a number of tests as well as https://github.com/llvm/llvm-project/blob/release/19.x/lldb/test/Shell/helper/build.py#L677 https://github.com/llvm/llvm-project/pull/115177 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits