Re: [lldb-dev] LLDB does not respect platform sysroot when loading core on Linux

2018-07-23 Thread Greg Clayton via lldb-dev
create_ptr, false, m_sdk_sysroot.AsCString()); >> >> >> >> return GetRemoteSharedModule(module_spec, process, module_sp, >> >>[&](const ModuleSpec ) { >> >> Status error = ModuleList::Get

Re: [lldb-dev] LLDB does not respect platform sysroot when loading core on Linux

2018-07-23 Thread Eugene Birukov via lldb-dev
: LLDB Subject: Re: [lldb-dev] LLDB does not respect platform sysroot when loading core on Linux Instead of "image search-paths add" you should be able to do a "settings append target.exec-search-paths /your/sysroot". That one should not require a running target or anything li

Re: [lldb-dev] LLDB does not respect platform sysroot when loading core on Linux

2018-07-23 Thread Pavel Labath via lldb-dev
old_module_sp_ptr, did_create_ptr, > false); > > + old_module_sp_ptr, did_create_ptr, > false, > > + m_sdk_sysroot.AsCString()); > > if (error.Succ

Re: [lldb-dev] LLDB does not respect platform sysroot when loading core on Linux

2018-07-20 Thread Eugene Birukov via lldb-dev
rora.org>>; lldb-dev@lists.llvm.org<mailto:lldb-dev@lists.llvm.org> Subject: Re: [lldb-dev] LLDB does not respect platform sysroot when loading core on Linux 1. Shouldn't platform trick work? 2. This doesn't work too. "image" command is rejected if I don't have the ta

Re: [lldb-dev] LLDB does not respect platform sysroot when loading core on Linux

2018-07-20 Thread Eugene Birukov via lldb-dev
y, July 20, 2018 12:01 PM To: Eugene Birukov ; lldb-dev@lists.llvm.org Subject: RE: [lldb-dev] LLDB does not respect platform sysroot when loading core on Linux Instead of setting the sysroot, try the command image search-paths add / /path/to/remote/shared/libraries/ That adds to the list that t

Re: [lldb-dev] LLDB does not respect platform sysroot when loading core on Linux

2018-07-20 Thread Ted Woodward via lldb-dev
-dev-boun...@lists.llvm.org] On Behalf Of Eugene Birukov via lldb-dev Sent: Friday, July 20, 2018 1:13 PM To: lldb-dev@lists.llvm.org Subject: [lldb-dev] LLDB does not respect platform sysroot when loading core on Linux Hello, I would appreciate advise how to fix this correctly. I have

[lldb-dev] LLDB does not respect platform sysroot when loading core on Linux

2018-07-20 Thread Eugene Birukov via lldb-dev
Hello, I would appreciate advise how to fix this correctly... I have a core dump from somebody's RHEL Linux and I am trying to open it on my Ubuntu. I have all the shared libraries from the target sitting under my local directory. So, GDB happily opens the core after I issue "set sysroot