summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-10-28 22:26:53 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-10-28 22:26:53 (GMT)
commit8c71b36d401b2473342daddcb9b7eb4b83ba3295 (patch)
tree13515f99f3e01fc2d1701189e500fa69763da7f9 /src/gui
parent2c70e3332b43bdcbe215081b697395d254418e48 (diff)
Optimized access to instruction sources and destinations.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/dialogs/gotox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/dialogs/gotox.c b/src/gui/dialogs/gotox.c
index fe18e4e..96f974a 100644
--- a/src/gui/dialogs/gotox.c
+++ b/src/gui/dialogs/gotox.c
@@ -273,7 +273,7 @@ GtkWidget *create_gotox_dialog_for_cross_references(GtkWindow *parent, GLoadedBi
{
GtkWidget *result; /* Fenêtre à renvoyer */
GtkTreeStore *store; /* Modèle de gestion */
- GArchInstruction **list; /* Liste d'instructions */
+ instr_link_t *list; /* Liste d'instructions */
size_t count; /* Nombre d'éléments présents */
size_t i; /* Boucle de parcours */
const vmpa2t *addr; /* Adresse à considérer */
@@ -292,17 +292,17 @@ GtkWidget *create_gotox_dialog_for_cross_references(GtkWindow *parent, GLoadedBi
if (back)
{
g_arch_instruction_rlock_src(instr);
- count = g_arch_instruction_get_sources(instr, &list, NULL);
+ count = g_arch_instruction_get_sources(instr, &list);
}
else
{
g_arch_instruction_rlock_dest(instr);
- count = g_arch_instruction_get_destinations(instr, &list, NULL);
+ count = g_arch_instruction_get_destinations(instr, &list);
}
for (i = 0; i < count; i++)
{
- addr = get_mrange_addr(g_arch_instruction_get_range(list[i]));
+ addr = get_mrange_addr(g_arch_instruction_get_range(list[i].linked));
add_new_location_to_list(store, binary, addr, NULL);