summaryrefslogtreecommitdiff
path: root/src/format/dwarf/dwarf-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2008-08-10 12:25:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2008-08-10 12:25:22 (GMT)
commita13b6baeeea114919d0e9eb25e35657b144437dc (patch)
tree8b22b991f2424b83db81ecc1ac063c5949adfb0b /src/format/dwarf/dwarf-int.h
parent904476ddf621d9513bf90a3fa396d2e6c1ea2952 (diff)
Read all the DWARF abbreviations.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@16 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/dwarf/dwarf-int.h')
-rw-r--r--src/format/dwarf/dwarf-int.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/format/dwarf/dwarf-int.h b/src/format/dwarf/dwarf-int.h
index e3bb212..371d193 100644
--- a/src/format/dwarf/dwarf-int.h
+++ b/src/format/dwarf/dwarf-int.h
@@ -29,6 +29,34 @@
#include "../dbg_format-int.h"
+#include "dwarf_def.h"
+
+
+
+
+/* Description d'un attribut d'une abréviation */
+typedef struct _dw_abbrev_attr
+{
+ DwarfAttrib attrib; /* Sujet de l'élément */
+ DwarfForm form; /* Représentation */
+
+} dw_abbrev_attr;
+
+
+/* Description d'une abréviation */
+typedef struct _dw_abbrev
+{
+ DwarfTag tag; /* Sujet de l'élément */
+
+ dw_abbrev_attr *attribs; /* Liste des attributs */
+ size_t attribs_count; /* Nombre de ces attributs */
+
+ struct _dw_abbrev **children; /* Liste des sous-éléments */
+ size_t children_count; /* Nombre de ces enfants */
+
+} dw_abbrev;
+
+
/* Description du format DWARF */
@@ -36,7 +64,8 @@ struct _dwarf_format
{
dbg_format dummy; /* A laisser en premier */
-
+ dw_abbrev **abbrevs; /* Liste des abréviations */
+ size_t abbrevs_count; /* Nombre de ces abréviations */
};