<div dir="ltr">If you invoke clang as a driver (as in clang test.c) it will spawn a new process for the frontend (that lexes, preprocesses, parses etc.) and a new process for linker and assembler. To debug the frontend itself (and not the driver) pass -cc1 (as in clang -cc1 test.c).<div>
<br></div><div>Not sure where you'd like to break, but have a look at Lexer.cpp and Preprocessor.cpp and pick a method. Constructor might be a good place to start...</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sun, May 25, 2014 at 3:20 PM, phi clang <span dir="ltr"><<a href="mailto:phi.clang@gmail.com" target="_blank">phi.clang@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"><div><div><br></div>​Discovered the -f-no-color-diagnostics<br><br></div>Still have to discover a good function name to setup a break point to get the lexer control.<br><br>Cheers,<br>Phi<br><br></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>