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.h80
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