[Lldb-commits] [lldb] 62ac791 - [lldb][test] TestExprLanguageNote.test: require LLD on Windows
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Sun Oct 12 15:47:29 PDT 2025
Author: Michael Buch
Date: 2025-10-12T23:47:04+01:00
New Revision: 62ac791b67bf55d8b1b2783006eb698d79259850
URL: https://github.com/llvm/llvm-project/commit/62ac791b67bf55d8b1b2783006eb698d79259850
DIFF: https://github.com/llvm/llvm-project/commit/62ac791b67bf55d8b1b2783006eb698d79259850.diff
LOG: [lldb][test] TestExprLanguageNote.test: require LLD on Windows
Otherwise debug-info is stripped, which influences the language of the
current frame.
Also, set explicit breakpoint because Windows seems to not obey the
debugtrap.
Log from failing test on Windows:
```
(lldb) command source -s 0 'lit-lldb-init-quiet'
Executing commands in 'D:\test\lit-lldb-init-quiet'.
(lldb) command source -C --silent-run true lit-lldb-init
(lldb) target create "main.out"
Current executable set to 'D:\test\main.out' (x86_64).
(lldb) settings set interpreter.stop-command-source-on-error false
(lldb) command source -s 0 'with-target.input'
Executing commands in 'D:\test\with-target.input'.
(lldb) expr blah
^
error: use of undeclared identifier 'blah'
note: Falling back to default language. Ran expression as 'Objective C++'.
(lldb) run
Process 29404 launched: 'D:\test\main.out' (x86_64)
Process 29404 stopped
* thread #1, stop reason = Exception 0x80000003 encountered at address 0x7ff7b3df7189
frame #0: 0x00007ff7b3df718a main.out
-> 0x7ff7b3df718a: xorl %eax, %eax
0x7ff7b3df718c: popq %rcx
0x7ff7b3df718d: retq
0x7ff7b3df718e: int3
(lldb) expr blah
^
error: use of undeclared identifier 'blah'
note: Falling back to default language. Ran expression as 'Objective C++'.
(lldb) expr -l objc -- blah
^
error: use of undeclared identifier 'blah'
note: Expression evaluation in pure Objective-C not supported. Ran expression as 'Objective C++'.
(lldb) expr -l c -- blah
^
error: use of undeclared identifier 'blah'
note: Expression evaluation in pure C not supported. Ran expression as 'ISO C++'.
```
Added:
Modified:
lldb/test/Shell/Expr/TestExprLanguageNote.test
Removed:
################################################################################
diff --git a/lldb/test/Shell/Expr/TestExprLanguageNote.test b/lldb/test/Shell/Expr/TestExprLanguageNote.test
index b4387bf9121ae..7d8c7025d7f7a 100644
--- a/lldb/test/Shell/Expr/TestExprLanguageNote.test
+++ b/lldb/test/Shell/Expr/TestExprLanguageNote.test
@@ -1,3 +1,5 @@
+# REQUIRES: (system-windows && lld) || !system-windows
+
# RUN: split-file %s %t
# RUN: %clang_host -g %t/main.cpp -o %t.out
#
@@ -11,7 +13,7 @@
int main() {
int x = 10;
- __builtin_debugtrap();
+ return x;
}
#--- with-target.input
@@ -21,6 +23,7 @@ expr blah
# CHECK-TARGET: (lldb) expr
# CHECK-TARGET: note: Falling back to default language. Ran expression as 'Objective C++'.
+b 4
run
expr blah
More information about the lldb-commits
mailing list