From 330ca2f7c71d84a01626b1198ef600540eb320b8 Mon Sep 17 00:00:00 2001 From: jimblandy Date: Tue, 12 Jan 2010 16:53:02 +0000 Subject: Google Breakpad DWARF reader: Add a handler function for DIE references. Add a new member function to dwarf2reader::Dwarf2Handler, ProcessAttributeReference, for reporting attribute values that are references to other DIEs. This handler member function always receives an absolute offset (that is, relative to the start of the .debug_info section, not to the start of the compilation unit), regardless of the form the attribute uses. (Some forms are CU-relative, some are absolute.) a=jimblandy, r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@482 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/dwarf/functioninfo.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/common/dwarf/functioninfo.h') diff --git a/src/common/dwarf/functioninfo.h b/src/common/dwarf/functioninfo.h index 740f1463..3351c67c 100644 --- a/src/common/dwarf/functioninfo.h +++ b/src/common/dwarf/functioninfo.h @@ -146,6 +146,16 @@ class CUFunctionInfoHandler: public Dwarf2Handler { enum DwarfForm form, uint64 data); + // Called when we have an attribute with a DIE reference to give to + // our handler. The attribute is for the DIE at OFFSET from the + // beginning of the .debug_info section, has a name of ATTR, a form of + // FORM, and the offset of the referenced DIE from the start of the + // .debug_info section is in DATA. + virtual void ProcessAttributeReference(uint64 offset, + enum DwarfAttribute attr, + enum DwarfForm form, + uint64 data); + // Called when we have an attribute with string data to give to // our handler. The attribute is for the DIE at OFFSET from the // beginning of the .debug_info section, has a name of ATTR, a form of -- cgit v1.2.1