<div dir="ltr">Hey Pavel,<div><br></div><div>What would be a reasonable solution?</div><div><br></div><div>Does having the lldb-server read the shared libraries from disk (instead of from the process's memory) sound sensible?</div><div><br></div><div>Scott</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 10:30 AM, Pavel Labath <span dir="ltr"><<a href="mailto:labath@google.com" target="_blank">labath@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>this is a known problem and somewhat embarrassing problem, but unfortunately we haven't had time to look at that yet. The code that is doing that was added to support loading of the vdso, which is only present in the application memory (and it is a full elf file). I don't think anybody has realized the full implications of this when it was being added. Patches fixing this would be very wellcome.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 19 April 2017 at 15:17, Scott Funkenhauser via lldb-dev <span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><span style="font-size:12.8px">Hey,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I'm exploring using lldb-mi and lldb-server to remotely debug a process running on a Linux host. I'm running into an issue where lldb-mi is failing to load the ELF section headers from the remote process's memory for certain shared libraries.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Looking at ObjectFileELF:GetSectionHeader<wbr>Info I believe it is trying to read the section headers from <shared library base address + ELF section header offset>. As far as I'm aware, on Linux shared libraries aren't required to be loaded in a contiguous block of memory, nor are the section headers even required to be loaded in memory.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I was wondering if this is a know issue? If so is there a bug tracking the progress?</div><div style="font-size:12.8px">Is remote debugging on Linux just not supported yet? Is this something that is being actively worked on?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Scott</div></div>
<br></div></div>______________________________<wbr>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>