<div dir="ltr">Yep, I've been looking at making some improvements to location list emission (using base address specifiers, etc) & came across this hole as well.<br><br>Don't have any immediate fix myself - but I'm pretty sure we don't ever want to use the direct address forms (LLE_base_address, LLE_start_length, etc) even in non-Split DWARF (sticking to the address pool forms - base_addressx, startx_length, etc) - so it should be fine to use exactly the same code for debug_loclists and debug_loclists.dwo</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 28, 2019 at 9:54 AM Sourabh Singh Tomar via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="auto">Hi Folks,<div dir="auto"><br></div><div dir="auto">While working on dwarf5 features in clang, I noticed some subtleties wrt locationlists--</div><div dir="auto"><br></div><div dir="auto">In split-dwarf  + dwarf5 mode -</div><div dir="auto">debug_loclists.dwo section is not generated, instead debug_loc.dwo is getting populated in dwo file. + Hexdump shows that pre-standardized encoding used while encoding.</div><div dir="auto"><br></div><div dir="auto">This is causing problems for llvm-dwarfdump in dumping location list. </div><div dir="auto">I'm guessing, llvm-dwarfdump is assuming it should be accessed according to dwarf5, hence failing{not reporting}  ???</div><div dir="auto"><br></div><div>In, split-mode +dwarf-4{default} mode -- everything is fine. section generation and llvm-dwarfdump.</div><div dir="auto"><br></div><div dir="auto">+ While fixing this issue, I've been trying to bring this section debug_loclists.dwo from ground up -- creating LoclistsDWOSection and so forth.</div><div dir="auto"><br></div><div>Can anybody faced  with these issues earlier, validate these findings?, work in progress if it's their any?, approach / solution taken to fix these ???</div><div><br></div><div>Thanks !</div><div>-- Sourabh Singh Tomar</div><div dir="auto"><br></div><div dir="auto"><br></div></div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>