<p dir="ltr">Sure, a patch to be compatible here sounds great. Thanks!</p>
<br><div class="gmail_quote">On Thu, May 28, 2015, 8:01 AM Alex <<a href="mailto:alexinbeijing@gmail.com">alexinbeijing@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, May 28, 2015 at 4:36 PM, Alex <span dir="ltr"><<a href="mailto:alexinbeijing@gmail.com" target="_blank">alexinbeijing@gmail.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">Dear LLVM devs,<div><br></div><div>I've noticed that LLVM's assembler (and hence clang) doesn't generate debug data when assembling, even when run with "-g".</div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Sorry, let me correct that: the assembler does generate the .debug_info section (as well as line number data) when run with "-g". I was wrong, sorry.<br></div><div><br></div><div>The issue I am having with GDB is occurring because using ".file" directives with LLVM's assembler doesn't automatically add DW_TAG_compile_unit DIEs to the .debug_info and .debug_aranges sections. (It does with GAS.)</div><div><br></div><div>When the assembler is run with -g, it does generate the DW_TAG_compile_unit DIEs. There is no problem there. The problem comes when you want to manually include your own debug data using assembler directives. This is useful when the assembler is generated from some other source.</div><div><br></div><div>So what I should have said is: would you be interested in a patch which makes ".file" directives generate DW_TAG_compile_unit DIEs?</div><div><br></div><div>Thanks, Alex Dowad</div></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div>