<font color="#330099"><font><font face="georgia,serif"><br>Hi Hans,<br><br>I can't use debugger. Because am using Linux command line to run clang. There is no debugging option at Linux. Thanks for the idea.<br></font></font></font><br>
<div class="gmail_quote">On Mon, Dec 12, 2011 at 10:23 PM, Hans Wennborg <span dir="ltr"><<a href="mailto:hans@chromium.org">hans@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Dec 12, 2011 at 2:03 PM, eyasu getahun <<a href="mailto:eya.get@gmail.com">eya.get@gmail.com</a>> wrote:<br>
><br>
> Hey James,<br>
><br>
> Thanks for the command line option. But where is the function called? I mean<br>
> in which main method of clang it is called? We know that every function must<br>
> be called at least at one main method/function to be executed. Let me make<br>
> it clear like this way:<br>
><br>
> int main ()//main method<br>
> {<br>
> S->Printpretty(context);<br>
> }<br>
><br>
> So, which main method is calling our printpretty() function? Hope now its<br>
> clear for you.<br>
<br>
</div>Hi Eyasu,<br>
<br>
The best way to find out where a function is called from is to run<br>
Clang in a debugger, set a breakpoint in the function you are asking<br>
about (StmtPrinter::PrintStmt), and look at the stack trace.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Hans<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><b>With Best Regards,<br><br>===========================================<br>Eyasu Getahun</b><br><br>1 Fusionopolis way, #08-10 Connexis North Tower<br>Singapore 138632, Singapore<br>
Mobile: +393279239907<br><b>===========================================<br></b><br>