summaryrefslogtreecommitdiff
path: root/src/format/dwarf/dwarf-int.h
diff options
context:
space:
mode:
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 */
};