diff options
Diffstat (limited to 'src/gui/panels')
-rw-r--r-- | src/gui/panels/strings.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c index b8f5eca..825c510 100644 --- a/src/gui/panels/strings.c +++ b/src/gui/panels/strings.c @@ -1039,6 +1039,7 @@ static void mcb_strings_panel_find_refs(GtkMenuItem *menuitem, GStringsPanel *pa GBinSymbol *symbol; /* Symbole sélectionné */ const mrange_t *range; /* Couverture en mémoire */ GLoadedBinary *binary; /* Représentation binaire */ + GArchProcessor *proc; /* Processeur de l'architecture*/ GArchInstruction *list; /* Ensemble des instructions */ GArchInstruction *instr; /* Point de croisements */ GObject *ref; /* Espace de référencements */ @@ -1052,7 +1053,8 @@ static void mcb_strings_panel_find_refs(GtkMenuItem *menuitem, GStringsPanel *pa range = g_binary_symbol_get_range(symbol); binary = g_editor_item_get_current_binary(G_EDITOR_ITEM(panel)); - list = g_loaded_binary_get_instructions(binary); + proc = g_loaded_binary_get_processor(binary); + list = g_arch_processor_get_disassembled_instructions(proc); /** * Se rapporter aux commentaires de mcb_edition_list_xrefs() pour les questions @@ -1077,6 +1079,8 @@ static void mcb_strings_panel_find_refs(GtkMenuItem *menuitem, GStringsPanel *pa gtk_widget_destroy(dialog); + g_object_unref(G_OBJECT(proc)); + g_object_unref(G_OBJECT(symbol)); } |