|Retriving information from DWARF 2.0 object file. email@example.com (2001-09-25)|
|Re:Retrieving information from DWARF 2.0 object file Kevin.Tucker@Microchip.com (2001-09-26)|
|Date:||26 Sep 2001 00:48:11 -0400|
|Posted-Date:||26 Sep 2001 00:48:11 EDT|
It's been quite a while since I've worked with DWARF, but if I remember
correctly, there should be an attribute (DW_AT_TYPE, I think) for each
symbol that contains an offset to the type information. There is also
another attribute (DW_AT_LOCATION or DW_AT_LOC) that gives an offset to
debug info that describes the location of the variable. Also, don't
forget that a variable can possibly have multiple locations at different
execution points in the case of optimization.
Hope that helps!
Return to the
Search the comp.compilers archives again.