summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/binary.c2
-rw-r--r--src/analysis/roptions.c5
-rw-r--r--src/analysis/roptions.h2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index 2b392bd..66cc26d 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -738,7 +738,7 @@ GOpenidaBinary *g_openida_binary_new_from_file(const char *filename)
result->proc = get_arch_processor_from_format(result->format);
- result->options = g_rendering_options_new(result->format, result->proc);
+ result->options = g_rendering_options_new(result->format);
g_rendering_options_show_address(result->options, MRD_BLOCK, true);
g_rendering_options_show_code(result->options, MRD_BLOCK, true);
diff --git a/src/analysis/roptions.c b/src/analysis/roptions.c
index 6aa4262..be7e1e9 100644
--- a/src/analysis/roptions.c
+++ b/src/analysis/roptions.c
@@ -97,7 +97,6 @@ static void g_rendering_options_init(GRenderingOptions *options)
/******************************************************************************
* *
* Paramètres : format = format du contenu binaire. *
-* proc = architecture utilisée par le binaire. *
* *
* Description : Crée un un groupe d'options pour le rendu des lignes. *
* *
@@ -107,14 +106,14 @@ static void g_rendering_options_init(GRenderingOptions *options)
* *
******************************************************************************/
-GRenderingOptions *g_rendering_options_new(GExeFormat *format, GArchProcessor *proc)
+GRenderingOptions *g_rendering_options_new(GExeFormat *format)
{
GRenderingOptions *result; /* Structure à retourner */
result = g_object_new(G_TYPE_RENDERING_OPTIONS, NULL);
result->format = format;
- result->proc = proc;
+ result->proc = get_arch_processor_from_format(format);
return result;
diff --git a/src/analysis/roptions.h b/src/analysis/roptions.h
index d2fbe0b..392d740 100644
--- a/src/analysis/roptions.h
+++ b/src/analysis/roptions.h
@@ -75,7 +75,7 @@ typedef struct _GRenderingOptionsClass GRenderingOptionsClass;
GType g_rendering_options_get_type(void);
/* Crée un un groupe d'options pour le rendu des lignes. */
-GRenderingOptions *g_rendering_options_new(GExeFormat *, GArchProcessor *);
+GRenderingOptions *g_rendering_options_new(GExeFormat *);
/* Fournit le format du contenu binaire représenté. */
GExeFormat *g_rendering_options_get_format(const GRenderingOptions *);