<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">That did it. Thanks.<br>
      <br>
      That's how I debug clang itself. I'm not using my head right now.
      :)<br>
      <br>
      Reed<br>
      <br>
      On 05/21/2013 05:35 AM, Reid Kleckner wrote:<br>
    </div>
    <blockquote
cite="mid:CACs=tyJb__5dvYF=xYG-KBa1XmfHgGw2GiHguW_HKbbvjnQF5A@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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 moz-do-not-send="true"
              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>
            _______________________________________________<br>
            LLVM Developers mailing list<br>
            <a moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu"
              target="_blank">LLVMdev@cs.uiuc.edu</a>         <a
              moz-do-not-send="true" href="http://llvm.cs.uiuc.edu"
              target="_blank">http://llvm.cs.uiuc.edu</a><br>
            <a moz-do-not-send="true"
              href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev"
              target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>