<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<div><br></div><div>I am using LLDB-3.7 on Ubuntu Linux.</div><div><br></div><div>I have a core dump file and all shared libraries from my server but I want to investigate them on a dev box. But I fail to correctly load it in LLDB - it shows wrong stacks. I.e. I am looking for something equivalent to GDB commands "set solib-absolute-prefix" and "set solib-search-path".</div><div><br></div><div>I tried to play with "target modules search-paths insert", but I cannot use it if there is no target and I cannot load core after I have a target - not sure what this command is intended to do...</div><div><br></div><div>Now, what I really need to do - it is load core in my custom debugger that uses C++ API. Here I made some progress:</div><div><ul><li>Create target with NULL file name</li><li>Load core using SBTarget::LoadCore()</li><li>Manually load all executables - the initial a.out and all the shared libraries using SBTarget::AddModule() and SBTarget::SetModuleLoadAddress()</li></ul><div>This kind of works, but there are two problems:</div></div><div><ol><li>How would I find the list of modules and addresses to load from the core file? Currently I did it by loading core in the debugger on the server, but this is not acceptable for production run...</li><li>LLDB correctly prints stacks and resolves symbols, but I cannot disassembly any code - the ReadMemory retuns all zeroes from code addresses.</li></ol><div><br></div></div><div>Any help would be greatly appreciated.</div><div><br></div><div>Thanks,</div><div>Eugene</div>                                         </div></body>
</html>