diff options
Diffstat (limited to 'plugins/lnxsyscalls/hunter.c')
-rw-r--r-- | plugins/lnxsyscalls/hunter.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/plugins/lnxsyscalls/hunter.c b/plugins/lnxsyscalls/hunter.c index 30329fd..afe73fb 100644 --- a/plugins/lnxsyscalls/hunter.c +++ b/plugins/lnxsyscalls/hunter.c @@ -37,8 +37,6 @@ struct _GGateHunter { GDelayedWork parent; /* A laisser en premier */ - const GPluginModule *plugin; /* Liens pour les messages */ - GLoadedBinary *binary; /* Binaire chargé et concerné */ GBinFormat *format; /* Format de fichier manipulé */ GProcContext *context; /* Contexte de désassemblage */ @@ -179,8 +177,7 @@ static void g_gate_hunter_finalize(GGateHunter *hunter) /****************************************************************************** * * -* Paramètres : plugin = greffon à manipuler. * -* binary = binaire dont la définition est à compléter. * +* Paramètres : binary = binaire dont la définition est à compléter. * * context = contexte de désassemblage. * * begin = point de départ du parcours de liste. * * end = point d'arrivée exclu du parcours. * @@ -195,14 +192,12 @@ static void g_gate_hunter_finalize(GGateHunter *hunter) * * ******************************************************************************/ -GGateHunter *g_gate_hunter_new(const GPluginModule *plugin, GLoadedBinary *binary, GProcContext *context, size_t begin, size_t end, activity_id_t id, const hunting_ops *hops) +GGateHunter *g_gate_hunter_new(GLoadedBinary *binary, GProcContext *context, size_t begin, size_t end, activity_id_t id, const hunting_ops *hops) { GGateHunter *result; /* Tâche à retourner */ result = g_object_new(G_TYPE_GATE_HUNTER, NULL); - result->plugin = plugin; - result->binary = binary; g_object_ref(G_OBJECT(binary)); @@ -220,7 +215,7 @@ GGateHunter *g_gate_hunter_new(const GPluginModule *plugin, GLoadedBinary *binar result->hops = hops; - result->db = open_syscalls_database(plugin); + result->db = open_syscalls_database(); if (result->db == NULL) goto gghn_db_error; return result; @@ -291,7 +286,7 @@ static void g_gate_hunter_process(GGateHunter *hunter, GtkStatusStack *status) ret = hunter->hops->resolve_nr(exec, proc, hunter->hops, &nr); if (!ret) goto unknown_syscall; - info = extract_from_syscalls_database(hunter->db, hunter->plugin, hunter->hops->arch, nr); + info = extract_from_syscalls_database(hunter->db, hunter->hops->arch, nr); if (info == NULL) goto unknown_syscall; loop = count_register_tracker_stacks(exec); |