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/format.c | |
parent | 8d8e5c02096f59a7227308a591fc5050ea5d92ff (diff) |
Improved the basic support of Dwarf information.
Diffstat (limited to 'src/format/format.c')
-rw-r--r-- | src/format/format.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/format/format.c b/src/format/format.c index 387894c..88f59b8 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -149,6 +149,10 @@ bool g_binary_format_complete_loading(GBinFormat *format) void g_binary_format_set_content(GBinFormat *format, GBinContent *content) { + assert(format->content == NULL); + + g_object_ref(G_OBJECT(content)); + format->content = content; } @@ -177,6 +181,25 @@ GBinContent *g_binary_format_get_content(const GBinFormat *format) /****************************************************************************** * * +* Paramètres : format = description de l'exécutable à consulter. * +* * +* Description : Indique le boutisme employé par le format binaire analysé. * +* * +* Retour : Boutisme associé au format. * +* * +* Remarques : - * +* * +******************************************************************************/ + +SourceEndian g_binary_format_get_endianness(const GBinFormat *format) +{ + return G_BIN_FORMAT_GET_CLASS(format)->get_endian(format); + +} + + +/****************************************************************************** +* * * Paramètres : format = description de l'exécutable à compléter. * * pt = point de l'espace mémoire à considérer. * * entry = nature du point fourni. * |