diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-08-09 18:12:27 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-08-09 18:12:27 (GMT) |
commit | 5cd25c4adfe0426520a51a76de3f77c77cfa4b8e (patch) | |
tree | 396514971fb78e81b7bb55c9cd3331d87b45ca9a /plugins/stackvars/stackvars.c | |
parent | d02deb2425d6559c357bdd00e1c0fb05f35d5fc9 (diff) |
Reorganized the way formats are handled (Java and PE got disabled, Dwarf is empty).
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@105 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/stackvars/stackvars.c')
-rw-r--r-- | plugins/stackvars/stackvars.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/stackvars/stackvars.c b/plugins/stackvars/stackvars.c index 9a7b965..5d0da59 100644 --- a/plugins/stackvars/stackvars.c +++ b/plugins/stackvars/stackvars.c @@ -27,7 +27,8 @@ #include <analysis/line_code.h> #include <analysis/prototype.h> #include <arch/x86/operand.h> -#include <format/exe_format.h> +#include <format/executable.h> +#include <format/format.h> #include "operand.h" @@ -100,7 +101,7 @@ G_MODULE_EXPORT bool execute_action_on_binary(GOpenidaBinary *binary, PluginActi { bool result; /* Bilan à retourner */ GRenderingLine *lines; /* Lignes de rendu */ - exe_format *format; /* Format du binaire fourni */ + GExeFormat *format; /* Format du binaire fourni */ GBinRoutine **routines; /* Liste des routines trouvées */ size_t routines_count; /* Nombre de ces routines */ size_t i; /* Boucle de parcours */ @@ -112,7 +113,7 @@ G_MODULE_EXPORT bool execute_action_on_binary(GOpenidaBinary *binary, PluginActi lines = g_openida_binary_get_lines(binary); format = g_openida_binary_get_format(binary); - routines = get_all_exe_routines(format, &routines_count); + routines = g_binary_format_get_routines(G_BIN_FORMAT(format), &routines_count); for (i = 0; i < routines_count; i++) result |= replace_stack_vars_in_routine(routines[i], lines); |