[Lldb-commits] [lldb] [lldb] Adding A new Binding helper for JSONTransport. (PR #159160)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 6 02:04:34 PDT 2025
DavidSpickett wrote:
> It is an assert inside CRT. Probably states of handles are wrong.
Or that's just the assert going off and using something in CRT to do so.
```
Expected: succeeded
Actual: failed (Unsupported file type 2)
```
This could be coming from `lldb/source/Host/windows/MainLoopWindows.cpp`:
```
DWORD file_type = GetFileType(waitable_handle);
if (file_type != FILE_TYPE_PIPE) {
error = Status::FromErrorStringWithFormat("Unsupported file type %ld",
file_type);
return nullptr;
}
```
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfiletype
These are test cases, so it would make some sense if one of the streams was not a pipe but some premade string or text file.
https://github.com/llvm/llvm-project/pull/159160
More information about the lldb-commits
mailing list