-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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-4: Patch to fix libedit usage on Linux #26099
Conversation
@@ -27,6 +27,8 @@ stdenv.mkDerivation { | |||
cmake/modules/LLDBStandalone.cmake | |||
sed -i 's,"$.LLVM_LIBRARY_DIR.",${llvm}/lib ${clang-unwrapped}/lib,' \ | |||
cmake/modules/LLDBStandalone.cmake | |||
|
|||
patch -p1 -i ${./lldb-libedit.patch} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why didn't you use patches
?
Idea from: https://bugs.llvm.org//show_bug.cgi?id=28898#c7 Fixes ability to use arrow keys.
Hold on, upstream patched this in a different way... will be comparing the two and testing. Upstream commit: llvm-mirror/lldb@9ad9480 |
Both patches seem to fix usage of libedit, arrow keys/tab-completion are working (as compared to current lldb). Unfortunately I'm not sure which patch is appropriate, neither seem to handle input containing utf8. Dummy little program with some unicode symbols for testing with: class ooɟ {
public:
__attribute__((noinline))
void こんにちは() {}
};
__attribute__((noinline))
void test() {
ooɟ f;
f.こんにちは();
}
int main() {
test();
} Tested using my patch (basically same as voidlinux's patch[1]), upstream's patch, both....cross two libedit versions-- our current libedit and newest version that enables unicode by default....
Changing libedit version does not seem to have any impact on tested behavior. [1] void's issue on this: https://github.com/voidlinux/void-packages/issues/6073 I vote we use the patch I originally proposed and ignore upstream's patch for now:
|
I would say we prefer upstream patches, but your argument makes sense. |
Idea from:
https://bugs.llvm.org//show_bug.cgi?id=28898#c7
Fixes ability to use arrow keys.
Motivation for this change
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)