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.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/format/dwarf/dwarf-int.h b/src/format/dwarf/dwarf-int.h
index 371d193..52130f8 100644
--- a/src/format/dwarf/dwarf-int.h
+++ b/src/format/dwarf/dwarf-int.h
@@ -34,6 +34,17 @@
+/* Format du DWARF */
+typedef enum _DwarfFormat
+{
+ DWF_32_BITS, /* Mode 32 bits */
+ DWF_64_BITS /* Mode 64 bits */
+
+} DwarfFormat;
+
+
+
+
/* Description d'un attribut d'une abréviation */
typedef struct _dw_abbrev_attr
{
@@ -46,6 +57,7 @@ typedef struct _dw_abbrev_attr
/* Description d'une abréviation */
typedef struct _dw_abbrev
{
+ off_t offset; /* Position dans le corps */
DwarfTag tag; /* Sujet de l'élément */
dw_abbrev_attr *attribs; /* Liste des attributs */
@@ -64,6 +76,8 @@ struct _dwarf_format
{
dbg_format dummy; /* A laisser en premier */
+ DwarfFormat format; /* Format de l'instance */
+
dw_abbrev **abbrevs; /* Liste des abréviations */
size_t abbrevs_count; /* Nombre de ces abréviations */