Re:Retrieving information from DWARF 2.0 object file

Kevin.Tucker@Microchip.com
26 Sep 2001 00:48:11 -0400

          From comp.compilers

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)
| List of all articles for this month |

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


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.