<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 20, 2018 at 11:22 AM Tim Northover 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 20 Sep 2018 at 10:53, via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
> I hope this helps someone. If you have any additional tips, comments or gotchas with this approach, please add them.<br>
<br>
LLVM_USE_SPLIT_DWARF=ON also greatly improves the situation by (I<br>
think) skipping linking the debug info entirely.</blockquote><div><br>Pretty much<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> The disadvantage is<br>
that lldb still doesn't quite work on the result (gdb does) and<br>
loading things into gdb takes longer (I think).<br></blockquote><div><br>The increased loading time in GDB can be avoided by enabling gdb-index (pass -ggnu-pubnames to the compiles, and -Wl,-gdb-index to the link step) so the debugger doesn't have to parse all the DWARF to start.<br><br>- Dave<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers.<br>
<br>
Tim.<br>
_______________________________________________<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>