diff options
Diffstat (limited to 'plugins/stackvars')
-rw-r--r-- | plugins/stackvars/operand.c | 4 | ||||
-rw-r--r-- | plugins/stackvars/stackvars.c | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/plugins/stackvars/operand.c b/plugins/stackvars/operand.c index 321312a..6eff546 100644 --- a/plugins/stackvars/operand.c +++ b/plugins/stackvars/operand.c @@ -57,7 +57,7 @@ static void g_stack_var_operand_class_init(GStackVarOperandClass *); static void g_stack_var_operand_init(GStackVarOperand *); /* Traduit un opérande en version humainement lisible. */ -static char *g_stack_var_operand_get_text(const GStackVarOperand *, const exe_format *, AsmSyntax); +static char *g_stack_var_operand_get_text(const GStackVarOperand *, const GExeFormat *, AsmSyntax); /* Indique le type défini pour un opérande de substitution pour variable de pile. */ @@ -145,7 +145,7 @@ GArchOperand *g_stack_var_operand_new(const GArchOperand *child) * * ******************************************************************************/ -static char *g_stack_var_operand_get_text(const GStackVarOperand *operand, const exe_format *format, AsmSyntax syntax) +static char *g_stack_var_operand_get_text(const GStackVarOperand *operand, const GExeFormat *format, AsmSyntax syntax) { char *result; /* Chaîne à retourner */ 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); |