<div>Hello cfe-dev!</div><div><br></div>I am taking a stab at clang bug id 14085.<div><br></div><div>I put the offending source in tmp.cc and started off with "gdb clang++" and then "(gdb) run tmp.cc".  This produces an "UNREACHABLE executed at ...." with a really helpful backtrace.</div>
<div><br></div><div>When I break at main() and step through the driver code, a posix_spawn() is eventually executed, and I am not sure how to step through that.  So, I figured it may be better to debug clang with the extensive command line arguments that are generated (this is dumped into a .sh file and recommended you attach it when submitting bug report).</div>
<div><br></div><div>So I "gdb clang" and "(gdb) run -cc1 -triple x86_64-unknown-linux-gnu ......... tons of options ....... tmp.cc" and break at cc1_main().  When I continue, it hits the same "UNREACHABLE executed at ....", but the backtrace is not printed.</div>
<div><br></div><div>Can someone explain why this is?  Is the backtrace dumped somewhere that the driver pid can read and that is why I see it in the first debugging scenario?</div><div><br></div><div>Any other recommendations for someone getting started with debugging clang?  Or, how to debug through the posix_spawn() in the driver?</div>
<div><br></div><div>Thanks!</div><div>Brian</div><div><br></div>