-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lldb] Interactive command line interface nonfunctional on Windows with cross-platform libedit #121715
Comments
@llvm/issue-subscribers-lldb Author: None (lulle2007200)
I have built LLDB 19.1.6 on windows with libedit support using this cross-platform libedit port: [https://github.com/michaeljclark/libedit](https://github.com/michaeljclark/libedit).
Here is the cmake command used:
The
Pretty ugly, but works. The resulting lldb executable is not functional. Here is a call stack when suspending lldb:
In particular, the call
in SelectHelper.cpp line 214 always fails and the loop
in ConnectionFileDescriptorPosix.cpp line 473 is never left. I'm not too familiar with the inner workings of lldb. |
I have built LLDB 19.1.6 on windows with libedit support using this cross-platform libedit port: https://github.com/michaeljclark/libedit.
Here is the cmake command used:
The
getline
function libedit provides inlibedit\compat\win32
is incomplete and doesn't return -1 on errors or when no characters were read and doesn't handle memory allocations. I have replaced it with the following:Pretty ugly, but works.
The resulting lldb executable is not functional.
Launching and attaching to a process by pid (e.g. lldb --attach-pid xxxx) etc. works fine, but the interactive command line is non-functional and does not accept any user keyboard input (command line stays blank).
Here is a call stack when suspending lldb:
In particular, the call
in SelectHelper.cpp line 214 always fails and the loop
in ConnectionFileDescriptorPosix.cpp line 473 is never left.
I'm not too familiar with the inner workings of lldb.
The text was updated successfully, but these errors were encountered: