diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2008-08-10 12:25:22 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2008-08-10 12:25:22 (GMT) |
commit | a13b6baeeea114919d0e9eb25e35657b144437dc (patch) | |
tree | 8b22b991f2424b83db81ecc1ac063c5949adfb0b /src/format/dwarf/dwarf-int.h | |
parent | 904476ddf621d9513bf90a3fa396d2e6c1ea2952 (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.h | 31 |
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 */ }; |