aboutsummaryrefslogtreecommitdiff
path: root/src/common/dwarf/functioninfo.h
diff options
context:
space:
mode:
authorjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-01-12 16:53:02 +0000
committerjimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-01-12 16:53:02 +0000
commit330ca2f7c71d84a01626b1198ef600540eb320b8 (patch)
treeb5531f2281c297c2c5d9b2372296af1632592df4 /src/common/dwarf/functioninfo.h
parentBreakpad: Avoid warnings building with G++ 4.4.1 using -O3 -Wall. (diff)
downloadbreakpad-330ca2f7c71d84a01626b1198ef600540eb320b8.tar.xz
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
Diffstat (limited to 'src/common/dwarf/functioninfo.h')
-rw-r--r--src/common/dwarf/functioninfo.h10
1 files changed, 10 insertions, 0 deletions
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