Related articles |
---|
Retriving information from DWARF 2.0 object file. nanjundaswamy.subramanya@honeywell.com (2001-09-25) |
Re:Retrieving information from DWARF 2.0 object file Kevin.Tucker@Microchip.com (2001-09-26) |
From: | Kevin.Tucker@Microchip.com |
Newsgroups: | comp.compilers |
Date: | 26 Sep 2001 00:48:11 -0400 |
Organization: | Compilers Central |
References: | 01-09-109 |
Keywords: | debug |
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!
Kevin
Return to the
comp.compilers page.
Search the
comp.compilers archives again.