On Wed, 2011-11-30 at 16:35 +0100, Stephan Bergmann wrote:
Hi all,
Playing around with the plugin (in the hope of eventually using it to
find out interesting things in the LibreOffice code base), I'm not sure
I'm trying to use it in a sensible manner. Maybe somebody on this list
can set me on track?
I'm excited about the plugin being used to analyze LibreOffice.
Having said that, I've barely used the plugin with C++ code.
[...snip...]
But the first obstacle is already how to determine the full name of
the
called function, as stmt.fndecl.name would only be "getLength", without
the class and namespace information.
I looked into this through my usual approach: use GCC's own debug dump
facilities, with some breakpoints set in gdb, to figure out how to get
at the relevant data structures.
I had a go at adding a "fullname" attribute to the function decl based
on what I found. It works for my test case, but unfortunately it breaks
the plugin for anything other than C++ code due to linker problems.
See:
http://gcc.gnu.org/ml/gcc/2011-11/msg00504.html
For now, I've attached the patch that I'm using.
Dave