summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-04-22 20:01:37 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-04-22 20:01:37 (GMT)
commit1becb2053fdbb0f04935e8b90104f1f9907988ea (patch)
treee7f448fbe12eaa1907b7388f0c1c0c3d46023ce3 /src
parent5235429714d9cc8425e6178eb7199e7ab55ff3c0 (diff)
Used the provided work group while loading ELF formats.
Diffstat (limited to 'src')
-rw-r--r--src/analysis/binary.c2
-rw-r--r--src/format/format-int.h2
-rw-r--r--src/format/format.c5
-rw-r--r--src/format/format.h2
4 files changed, 6 insertions, 5 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index 38cb503..8c3d3b6 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -1622,7 +1622,7 @@ static bool g_loaded_binary_analyze(GLoadedBinary *binary, wgroup_id_t gid, GtkS
disassemble_binary(binary, gid, status, &binary->disass_cache);
- g_binary_format_complete_analysis(format, status);
+ g_binary_format_complete_analysis(format, gid, status);
result = true;
diff --git a/src/format/format-int.h b/src/format/format-int.h
index 37dac0f..09586b9 100644
--- a/src/format/format-int.h
+++ b/src/format/format-int.h
@@ -47,7 +47,7 @@ typedef bool (* format_analyze_fc) (GBinFormat *, wgroup_id_t, GtkStatusStack *)
typedef SourceEndian (* format_get_endian_fc) (const GBinFormat *);
/* Réalise un traitement post-désassemblage. */
-typedef void (* format_complete_analysis_fc) (GBinFormat *, GtkStatusStack *);
+typedef void (* format_complete_analysis_fc) (GBinFormat *, wgroup_id_t, GtkStatusStack *);
/* Procède à la décompilation complète du format. */
typedef void (* format_decompile_fc) (const GBinFormat *, void/*GCodeBuffer*/ *, const char *);
diff --git a/src/format/format.c b/src/format/format.c
index 675fd2f..b28f4a7 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -426,6 +426,7 @@ void g_binary_format_activate_disassembling_context(GBinFormat *format, GProcCon
/******************************************************************************
* *
* Paramètres : format = description de l'exécutable à manipuler. *
+* gid = groupe de travail dédié. *
* status = barre de statut à tenir informée. *
* *
* Description : Réalise un traitement post-désassemblage. *
@@ -436,14 +437,14 @@ void g_binary_format_activate_disassembling_context(GBinFormat *format, GProcCon
* *
******************************************************************************/
-void g_binary_format_complete_analysis(GBinFormat *format, GtkStatusStack *status)
+void g_binary_format_complete_analysis(GBinFormat *format, wgroup_id_t gid, GtkStatusStack *status)
{
GBinFormatClass *class; /* Classe de l'instance */
class = G_BIN_FORMAT_GET_CLASS(format);
if (class->complete != NULL)
- class->complete(format, status);
+ class->complete(format, gid, status);
}
diff --git a/src/format/format.h b/src/format/format.h
index 982907c..44d005c 100644
--- a/src/format/format.h
+++ b/src/format/format.h
@@ -77,7 +77,7 @@ void g_binary_format_preload_disassembling_context(GBinFormat *, GProcContext *,
void g_binary_format_activate_disassembling_context(GBinFormat *, GProcContext *, GtkStatusStack *);
/* Réalise un traitement post-désassemblage. */
-void g_binary_format_complete_analysis(GBinFormat *, GtkStatusStack *);
+void g_binary_format_complete_analysis(GBinFormat *, wgroup_id_t, GtkStatusStack *);