<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 9, 2014 at 9:04 AM, Todd Fiala <span dir="ltr"><<a href="mailto:tfiala@google.com" target="_blank">tfiala@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">Hey all,<div><br></div><div>When running lldb tests with clang, on non-Apple platforms, we really need this flag set:</div>
<div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:12.727272033691406px">-fstandalone-debug</span></div></div></div></blockquote><div><br></div><div>We think this is a bug in LLDB, and would *really* like to see it fixed. gdb works fine without this flag, and it *drastically* reduces the amount of debug info stored in object files. My understanding is that the debug info that LLDB needs is there, but it's in a different compilation unit.</div>
<div><br></div><div>Usually the missing information is type information about a class with a vtable where the first virtual method (aka the key function) is defined in a different TU. That TU will emit the vtable and all type information for that class.</div>
<div><br></div><div>That said, it's fine if LLDB has to add the flag as a short-term way to stabilize the test suite. I just want to make sure we're on the same page here: this is probably an LLDB bug, not a Clang bug.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>It addresses issues where we end up missing complete debuginfo without it in some cases. That ends up breaking the debugger's ability to perform some operations. So, we're going to want that flag set when running tests on a host other than MacOSX.</div>
<div><br></div><div>We have a couple ways I suppose we can go about that: modify all the test build files to check if CC/CXX is clang, and add the symbol if so. Or we can do something in the test framework build functions that tries to figure that out, and adds it if appropriate.</div>
<div><br></div><div>Any preferences on the way to handle this?</div><span class="HOEnZb"><font color="#888888"><div>-- <br></div><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'">
<tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="color:rgb(34,34,34);background-color:rgb(255,255,204)">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</font></span></div></div>
<br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br></div></div>