[Dwarf-discuss] regarding listing class members

Michael Eager eager@eagercon.com
Wed Mar 7 19:42:54 GMT 2007


gireesh subramaniam wrote:
> 
> 
> no, the problem is not building datastructures but to keep track of the 
> nesting level and to decide whether or not to to continue with the 
> nesting and when to stop it.i still dont have a clear idea as to how the 
> nesting level info of the DIE's will be repesented in the .o file,and 
> these are the stuff i meant when i said accessing the information.

The nesting level is represented by the DIE tree.  Each DIE
has (potentially) one or more children.  Consult the description
of how DIEs are encoded in the .debug_info section for a detailed
description of how this is represented.

Looking at the code in readelf or libdwarf may help you get a better
understanding.

-- 
Michael Eager	 eager at eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077




More information about the Dwarf-discuss mailing list