summaryrefslogtreecommitdiff
path: root/plugins/stackvars
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-08-09 18:12:27 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-08-09 18:12:27 (GMT)
commit5cd25c4adfe0426520a51a76de3f77c77cfa4b8e (patch)
tree396514971fb78e81b7bb55c9cd3331d87b45ca9a /plugins/stackvars
parentd02deb2425d6559c357bdd00e1c0fb05f35d5fc9 (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')
-rw-r--r--plugins/stackvars/operand.c4
-rw-r--r--plugins/stackvars/stackvars.c7
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);