diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-03-14 22:18:27 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-03-14 22:18:27 (GMT) |
commit | fab9d7cd46922abea7d94f36dcd4630cdf3f4719 (patch) | |
tree | ad41bb921db17631104a069e4df64fb4fc5ccfc1 /src/format/dwarf/v2/dwarf.c | |
parent | 8d8e5c02096f59a7227308a591fc5050ea5d92ff (diff) |
Improved the basic support of Dwarf information.
Diffstat (limited to 'src/format/dwarf/v2/dwarf.c')
-rw-r--r-- | src/format/dwarf/v2/dwarf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/format/dwarf/v2/dwarf.c b/src/format/dwarf/v2/dwarf.c index 73e4e04..ccef01f 100644 --- a/src/format/dwarf/v2/dwarf.c +++ b/src/format/dwarf/v2/dwarf.c @@ -27,6 +27,9 @@ #include "../dwarf-int.h" +#include "form.h" + + /* Format de débogage DWARF v2 (instance) */ struct _GDwarfV2Format @@ -76,12 +79,17 @@ G_DEFINE_TYPE(GDwarfV2Format, g_dwarfv2_format, G_TYPE_DWARF_FORMAT); static void g_dwarfv2_format_class_init(GDwarfV2FormatClass *klass) { GObjectClass *object; /* Autre version de la classe */ + GDwarfFormatClass *dwarf; /* Version parente de la classe*/ object = G_OBJECT_CLASS(klass); object->dispose = (GObjectFinalizeFunc/* ! */)g_dwarfv2_format_dispose; object->finalize = (GObjectFinalizeFunc)g_dwarfv2_format_finalize; + dwarf = G_DWARF_FORMAT_CLASS(klass); + + dwarf->read_form = (read_form_value_fc)read_dwarf_v2_form_value; + } |