Change to a local copy of lldb
Answered
Using File->Settings->Toolchains
I'd like to specify a different version of lldb, one for my embedded target but when I click the "..." box to select it the dialog title says "Select GDB executable". The error in the text would be fine however after selecting my local copy of lldb the launch sequence passes gdb arguments to lldb. So I get this error:
...bin/lldb: unrecognized option '-interpreter=mi2'
I would like to fire up my version of lldb then do a platform connect connect://target:port#
Thanks,
Please sign in to leave a comment.
Hi!
The custom debugger field is only supposed for GDB executable, we don't support using a custom LLDB for now. Here is the feature request: https://youtrack.jetbrains.com/issue/CPP-3589, feel free to comment or upvote.
Both gdb and lldb evolve so I think it is an important feature. I tried swapping the bundled version with my version of lldb then using the command line to attach to my remote target but it looks like the start sequence uses lldb-server to parent the process. In my case, lldb-server is running on a remote target.
I tried using Run/Debug Configurations->Defaults->GDB Remote Debug and setting target remote args to lldb's, "platform connect connect://<hostname>:<port>" but that too seemed to be ignored when lldb was the selected debugger.
Is there a way to manually tune the startup to skip the lldb-server step and pass my own platform command?
I work on a toolchain and while the lldb command line interface is fine, viewing state in an IDE like CLion (which doesn't seem to crash, hang or lose all my settings) is far nicer. I'm using CLion for llvm development and so far it has worked perfectly for native sessions and it would be a huge luxury to have that power for remote debugging.
Thanks