diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-03-11 22:59:46 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-03-11 22:59:46 (GMT) |
commit | c4231094c9c77c685371d726d28e65c0459486de (patch) | |
tree | 2d4bb57239cb46bd2b1194c853c3a7263e487455 /src/analysis/prototype.c | |
parent | 29a22c425f492427f45b71de937f2d99587c8d34 (diff) |
Inserted comments into disassembled code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@53 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/prototype.c')
-rw-r--r-- | src/analysis/prototype.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/analysis/prototype.c b/src/analysis/prototype.c index aa3ca2f..0d2ebf5 100644 --- a/src/analysis/prototype.c +++ b/src/analysis/prototype.c @@ -25,6 +25,7 @@ #include <malloc.h> +#include <string.h> #include "../common/extstr.h" @@ -34,6 +35,12 @@ /* Variable représentant un prototype de routine */ struct _bin_routine { + + uint64_t offset; /* Position physique/mémoire */ + + + + RoutineType type; /* Type de routine */ variable *ret_type; /* Type retourné */ @@ -103,6 +110,45 @@ void delete_binary_routine(bin_routine *routine) /****************************************************************************** * * * Paramètres : routine = routine à mettre à jour. * +* offset = position mémoire ou physique déclarée. * +* * +* Description : Définit la position physique / en mémoire d'une routine. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void set_binary_routine_offset(bin_routine *routine, uint64_t offset) +{ + routine->offset = offset; + +} + + +/****************************************************************************** +* * +* Paramètres : routine = routine à mettre à jour. * +* * +* Description : Fournit la position physique / en mémoire d'une routine. * +* * +* Retour : Position mémoire ou physique déclarée. * +* * +* Remarques : - * +* * +******************************************************************************/ + +uint64_t get_binary_routine_offset(const bin_routine *routine) +{ + return routine->offset; + +} + + +/****************************************************************************** +* * +* Paramètres : routine = routine à mettre à jour. * * type = type de routine spécifié. * * * * Description : Définit le type d'une routine. * |