[Lldb-commits] [lldb] eca3206 - [lldb] Fix command-expr-diagnostics.test for Windows (#112109)
Muhammad Omair Javaid via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 15 17:34:12 PDT 2024
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
More information about the lldb-commits
mailing list