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

Trevor Joynson via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 4 18:36:19 PDT 2022


trevorj added a comment.

@JDevlieghere Sure I can provide more context, let me know if you want me to clarify anything!

I'm trying to debug production coredumps on a development machine using a sysroot folder tree that contains the required shared objects required.

In gdb, I use this via `set sysroot`.
In LLDB, I assume I should do something like `platform select host -S /path/to/sysroot`.

After doing either of these I would expect the attempted paths for loading shared objects will be prefixed by the configured sysroot.
Unfortunately, when using the `host` platform, it currently ignores the sysroot configuration option when trying to load shared objects.
This breaks the `sysroot` setting on the `host` platform.

If I'm doing something wrong feel free to correct me!

Side note, I believe these lines would be okay to remove because it falls back to normal resolution.


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