<div dir="ltr">Are you debugging the driver process or the -cc1 process?  To get the -cc1 process, unfortunately you have to go through the dance of passing -### to get the -cc1 line and then run that in gdb (or write one manually).  Alternatively in gdb you can say "set follow-fork child" (or something, check the docs) to automatically follow into the -cc1 child.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 21, 2013 at 8:00 AM, reed kotler <span dir="ltr"><<a href="mailto:rkotler@mips.com" target="_blank">rkotler@mips.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've always debugged the backend llc by running it as a separate executable.<br>
<br>
I'm seeing a bug that only happens when I run the compiler from clang.<br>
<br>
How do you debug this from gdb?<br>
<br>
I can put a breakpoint but it never stops when I say "run ...."<br>
<br>
Tia.<br>
<br>
Reed<br>
<br>
<br>
______________________________<u></u>_________________<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/<u></u>mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>