diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-08-12 19:05:31 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-08-12 19:05:31 (GMT) |
commit | 4b2f65ed2125cd7b6ef598cf02738f6c839d8935 (patch) | |
tree | de62e9daaafe63248c45202004758e91b7341cc5 /src/format/dwarf/dwarf-int.h | |
parent | b5c6bcea25b1b840fd6c8e89a4a3c9fbd83ba84b (diff) |
Extended the loading process of binary formats to prepare the DWARF support.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@568 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/dwarf/dwarf-int.h')
-rw-r--r-- | src/format/dwarf/dwarf-int.h | 80 |
1 files changed, 77 insertions, 3 deletions
diff --git a/src/format/dwarf/dwarf-int.h b/src/format/dwarf/dwarf-int.h index 7999d3a..d3bf14a 100644 --- a/src/format/dwarf/dwarf-int.h +++ b/src/format/dwarf/dwarf-int.h @@ -25,15 +25,89 @@ #define _FORMAT_DWARF_DWARF_INT_H +#include "dwarf.h" -#include "../dbg_format-int.h" +#include <stdint.h> + + + + +#include "../debuggable-int.h" #include "dwarf_def.h" + + + +/* En-tête présente dans certaines sections */ +typedef struct _dw_section_header +{ + uint64_t unit_length; /* Taille totale sans le champ */ + bool is_32b; /* Le format est-il sur 32b ? */ + + uint16_t version; /* Version de la section */ + +} dw_section_header; + + + + + + +/* Procède à la lecture de l'en-tête d'un contenu binaire ELF. */ +bool read_dwarf_section_header(GBinContent *, vmpa2t *, SourceEndian, dw_section_header *); + + + + + + + + + + + + + +/* Format de débogage DWARF (instance) */ +struct _GDwarfFormat +{ + GDbgFormat parent; /* A laisser en premier */ + +}; + +/* Format de débogage DWARF (classe) */ +struct _GDwarfFormatClass +{ + GDbgFormatClass parent; /* A laisser en premier */ + +}; + + + + + + + + + + + + + + + + + + + + + + /* Format du DWARF */ typedef enum _DwarfFormat { @@ -81,7 +155,7 @@ typedef struct _dw_dbg_function } dw_dbg_function; - +#if 0 /* Description du format DWARF */ struct _dwarf_format { @@ -96,7 +170,7 @@ struct _dwarf_format size_t dbg_fc_count; /* Nombre de ces fonctions */ }; - +#endif |