MINGW-packages
MINGW-packages copied to clipboard
lldb can't run commands depending on output device type
Description / Steps to reproduce the issue
- Open the CLANG64 MSYS2 shell
-
lldb /clang64/bin/glib-compile-resources.exe -
run
Expected behavior
The child process is launched
Actual behavior
(lldb) run
error: The parameter is incorrect.
(lldb)
Additional details
If I run lldb from CMD the error doesn't happen:
cd C:\msys64\clang64\bin
lldb glib-compile-resources.exe
(lldb) run
Process 16096 launched: 'C:\msys64\clang64\bin\glib-compile-resources.exe' (x86_64)
If I run lldb from the CLANG64 MSYS2 shell but pipe to tee or cat, the error doesn't happen:
lldb glib-compile-resources.exe | cat
(lldb) r
Process 1664 launched: 'C:\msys64\clang64\bin\glib-compile-resources.exe' (x86_64)
Verification
- [x] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)
Windows Version
MINGW64_NT-10.0-26200
MINGW environments affected
- [ ] MINGW64
- [ ] MINGW32
- [ ] UCRT64
- [x] CLANG64
- [ ] CLANGARM64
Are you willing to submit a PR?
Yes
IMO the error is triggered only when the output is ConPTY
with winpty it seems to work