this is my first experience in commandline mode of lldb. unsuccessful.
- installed minimal kit with clang, lld, lldb v5 (ubuntu 16.04)
- sample application built with clang.
- trying to start:
lldb applcation
>run
error: process launch failed: unable to locate lldb-server-5.0.0
so now the questions:
- why lldb tries to run a server? this is not a remote debugging.
- why lldb refers to 5.0.0 (and where to change this setting)? actually there was added symbolic links automiticaly with xxx-5.0 suffix to all llvm utilities, but not with xxx-5.0.0. would be reasonable if this refers to lldb-server itself, without suffixes.
- adding lldb-server-5.0.0 symlink doesn't solve the problem.
any idea how this should work?
by the way extra question - seems left/right/up/down arrows keys don't work in lldb console? instead of cursor moving it adds a codes
(lldb) ^[[D^[[A^[[C^[[B
This is a known bug with LLDB 5.0, apparently related to the Debian packaging. The workaround is similar to the question linked in the comments, but not the same. (And yes, having this exact problem, I've confirmed the solution.)
An
strace
reveals the problem...That indicates exactly where that symlink is needed. Fixing it is as simple as a single terminal command...