[Lldb-commits] [lldb] [lldb] Fixed TestEchoCommands.test running on a remote target (PR #94127)

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 3 05:33:50 PDT 2024


slydiman wrote:

> How can I configure my build to run this sort of thing?

The simplest way is to use the same arch target, e. g. x86_64 Linux host and x86_64 Linux target. You do not need a cross compiler in this case. To run Shell tests with a remote target it is necesasry 
- define LLVM_TARGET_TRIPLE=x86_64-unknown-linux-gnu 
- define LLDB_PLATFORM_URL=connect://<target_ip>:1234
- run lldv-server on the target `sudo /<path>/lldb-server p --listen '*:1234' --server --log-channels 'lldb all' --min-gdbserver-port 1240 --max-gdbserver-port 1250`
- run `cmake --build . --target check-lldb-shell` from a build dir

https://github.com/llvm/llvm-project/pull/94127


More information about the lldb-commits mailing list