gcc internals question, e.g. -fdump-translation-unit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need a way to extract from gcc, each time gcc runs, the following information:

A) When a call to any function F is encountered, I require the full path of the
file wherein F is defined.

B) When the conversion of any pointer of type STRICT->funcptr (structure
member of type pointer  to function(of any return type)) to a function call is
encountered, I require the full pathname of the file wherein STRUCT is defined.

I have looked at things like the -fdump-translation-unit flag, and have
managed to perform task 'A" by laborious parsing and analysis of the output
but I am looking for a simpler way.  I can't do "B", at all.

Can I do this by use of some other, or new, or undocumented flag for gcc.  If
so, then in particular, how will I interpret the output from that flag?

Or do I need to patch gcc itself?  Where would be the right place to start -
what file or function?


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux