diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-02-09 20:15:52 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-02-09 20:15:52 (GMT) |
commit | 8d326041a0379b87e54be44506d544367567e89b (patch) | |
tree | a3c3555c27c30858155fbee4df0ca236f33774f8 /src/analysis/binary.c | |
parent | b70f428256963385a140e9eb503624106df5aa9b (diff) |
Registered all the supported processors in the system code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@467 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/binary.c')
-rw-r--r-- | src/analysis/binary.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c index 35f7acd..55b984a 100644 --- a/src/analysis/binary.c +++ b/src/analysis/binary.c @@ -962,6 +962,8 @@ bin_t *g_loaded_binary_get_data(const GLoadedBinary *binary, off_t *length) GExeFormat *g_loaded_binary_get_format(const GLoadedBinary *binary) { + /* TODO : inc ref ! */ + return binary->format; } @@ -971,6 +973,31 @@ GExeFormat *g_loaded_binary_get_format(const GLoadedBinary *binary) * * * Paramètres : binary = élément binaire à consulter. * * * +* Description : Fournit le processeur de l'architecture liée au binaire. * +* * +* Retour : Adresse du processeur associé. * +* * +* Remarques : - * +* * +******************************************************************************/ + +GArchProcessor *g_loaded_binary_get_processor(const GLoadedBinary *binary) +{ + GArchProcessor *result; /* Instance à retourner */ + + result = binary->proc; + + g_object_ref(G_OBJECT(result)); + + return result; + +} + + +/****************************************************************************** +* * +* Paramètres : binary = élément binaire à consulter. * +* * * Description : Fournit les instructions issues du désassemblage. * * * * Retour : Instructions issues du désassemblage. * |