Author: Muhammad Omair Javaid Date: 2024-10-16T05:33:27+05:00 New Revision: eca3206d29e7ce97dd6336deaa3da96be37f8277
URL: https://github.com/llvm/llvm-project/commit/eca3206d29e7ce97dd6336deaa3da96be37f8277 DIFF: https://github.com/llvm/llvm-project/commit/eca3206d29e7ce97dd6336deaa3da96be37f8277.diff LOG: [lldb] Fix command-expr-diagnostics.test for Windows (#112109) This adds a minor change to command-expr-diagnostics.test to make it pass on windows. Clang produces PDB on windows by default which was ignoring main symbol due to optimization. The problem is fixed by adding -gdwarf to commandline, making sure dwarf debug info gets generated on both Windows and Linux. Added: Modified: lldb/test/Shell/Commands/command-expr-diagnostics.test Removed: ################################################################################ diff --git a/lldb/test/Shell/Commands/command-expr-diagnostics.test b/lldb/test/Shell/Commands/command-expr-diagnostics.test index b242dba1980f0f..3dab204ca87d12 100644 --- a/lldb/test/Shell/Commands/command-expr-diagnostics.test +++ b/lldb/test/Shell/Commands/command-expr-diagnostics.test @@ -17,7 +17,7 @@ # CHECK3: {{^ error: use of undeclared identifier 'a'}} # RUN: echo "int main(){return 0;}">%t.c -# RUN: %clang_host %t.c -o %t.exe +# RUN: %clang_host %t.c -gdwarf -o %t.exe # RUN: echo quit | %lldb %t.exe -o "b main" -o r -o \ # RUN: "expr --top-level -- template<typename T> T FOO(T x) { return x/2;}" -o \ # RUN: "expression -- FOO(\"\")" 2>&1 | FileCheck %s --check-prefix=CHECK4 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits