<div dir="ltr">You can also look at viewsource <<a href="https://github.com/jcranmer/viewsource">https://github.com/jcranmer/viewsource</a>>, written by Joshua.<br><br clear="all">--<br>Ehsan<br><<a href="http://ehsanakhgari.org/">http://ehsanakhgari.org/</a>><br>


<br><br><div class="gmail_quote">On Tue, Aug 23, 2011 at 1:16 PM, Simon <span dir="ltr"><<a href="mailto:simonhf@gmail.com">simonhf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I am trying to find a tool that will parse and tell me information about a C source file in a verbose manner which I can digest and use in a script I am writing. The closest I have come so far using gcc to generate debug info and then extract the debug info and parse that. However, what I'd prefer is a tool which lets me get at similar debug info (although obviously not memory offsets etc) *without* having to compile the C source code into object files. I know that clang has been re-written from scratch to be a lot more flexible than gcc. Does anybody in this list know how I could use clang (or another tool) to obtain such debug info without compiling all the way? Thanks, Simon
<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>