[Lldb-commits] [PATCH] D131212: Allow host platform to use sdk sysroot directory option when resolving shared modules

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 8 14:17:04 PDT 2022


clayborg added a comment.

What Pavel said should work (there is always a "remote-<platform>" name for everything like "remote-linux" even if you are on linux to start with. The host platform assumes that everything comes from the current host.

That being said we also have a few ways to make this work without any changes:

  (lldb) platform select remote-linux -S /tmp/debug-[snip]-coredump.1869466.bL8C/sysroot
  (lldb) target create --core ...

Not sure if this would work:

  (lldb) setting set target.exec-search-paths /tmp/debug-[snip]-coredump.1869466.bL8C/sysroot
  (lldb) setting set target.debug-file-search-paths /tmp/debug-[snip]-coredump.1869466.bL8C/sysroot
  (lldb) target create --core ...

The first way is the best way I believe.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131212/new/

https://reviews.llvm.org/D131212



More information about the lldb-commits mailing list