/* OpenIDA - Outil d'analyse de fichiers binaires * dwarf-int.h - prototypes pour les structures internes du format DWARF * * Copyright (C) 2008 Cyrille Bagard * * This file is part of OpenIDA. * * OpenIDA is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * OpenIDA is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Foobar. If not, see . */ #ifndef _FORMAT_DWARF_DWARF_INT_H #define _FORMAT_DWARF_DWARF_INT_H #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 */ 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 */ }; #endif /* _FORMAT_DWARF_DWARF_INT_H */