The situation arises when we are trying to load a core dump which was generated on a different machine
running a different version of Linux. The problem is that shared libraries differ on these machines and
LLDB either fails to load some libraries or loads wrong ones.
How it should work:
- We copy the directory tree with libraries from target machine into some local directory
- in LLDB, create a platform setting sysroot to that directory
- Create target using that platform
The fix is to pass additional "sysroot" argument from lldb_private::Platform::GetSharedModule to
lldb_private::ModuleList::GetSharedModule
Please make this an llvm::StringRef (and then change AsCString to GetStringRef below).