[Dwarf-discuss] regarding listing class members

David Anderson davea42@earthlink.net
Wed Mar 7 18:41:23 GMT 2007


gireesh subramaniam wrote:
> thanks for the information on the nesting levels..but how do i access 
> these
>> and how to take care of the nesting.should i make provisions for that in
>> my program or does dwarf have any features for it.
>>
>>
>
What does 'access' mean in your email?  (Rhetorical question)

Write a script or program that reads output from dwarfdump (or readelf, 
a GNU  binutils
tool) and which does what you want.
Or write code that reads the object file directly and decodes the DWARF 
information.

You will surely need to build data structures to capture the information
of interest.

I suspect you have enough information to proceed. But that does
not mean your task is easy  :-)
Programs are complicated, the relationships are complicated (especially
in C++ and Ada, and Fortran gets
more complicated all the time).  So the DWARF to express the 
relationships is complicated.

DavidAnderson




More information about the Dwarf-discuss mailing list