summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/analysis/disass/disassembler.c9
2 files changed, 5 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 373d7bf..7b657fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+16-09-26 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/analysis/disass/disassembler.c:
+ Delete code sorting routines as they are already sorted.
+
16-09-25 Cyrille Bagard <nocbos@gmail.com>
* src/analysis/disass/area.c:
diff --git a/src/analysis/disass/disassembler.c b/src/analysis/disass/disassembler.c
index 7c16dd1..2cfa6a5 100644
--- a/src/analysis/disass/disassembler.c
+++ b/src/analysis/disass/disassembler.c
@@ -333,8 +333,6 @@ static void g_delayed_disassembly_process(GDelayedDisassembly *disass, GtkStatus
//size_t i; /* Boucle de parcours */
- GBinRoutine **routines; /* Liste des routines trouvées */
- size_t routines_count; /* Nombre de ces routines */
@@ -351,7 +349,6 @@ static void g_delayed_disassembly_process(GDelayedDisassembly *disass, GtkStatus
proc = g_loaded_binary_get_processor(disass->binary);
- routines = g_binary_format_get_routines(G_BIN_FORMAT(disass->format), &routines_count);
/* Première étape */
@@ -411,10 +408,6 @@ static void g_delayed_disassembly_process(GDelayedDisassembly *disass, GtkStatus
/* Seconde étape */
- routines = g_binary_format_get_routines(G_BIN_FORMAT(disass->format), &routines_count);
-
-
- //qsort(routines, routines_count, sizeof(GBinRoutine *), (__compar_fn_t)g_binary_routine_rcompare);
@@ -520,7 +513,6 @@ static void g_delayed_disassembly_process(GDelayedDisassembly *disass, GtkStatus
//id = gtk_extended_status_bar_push(statusbar, _("Printing disassembled code..."), true);
- qsort(routines, routines_count, sizeof(GBinRoutine *), (__compar_fn_t)g_binary_routine_compare);
proc = g_loaded_binary_get_processor(disass->binary);
@@ -537,7 +529,6 @@ static void g_delayed_disassembly_process(GDelayedDisassembly *disass, GtkStatus
process_disassembly_event(PGA_DISASSEMBLY_ENDED, disass->binary);
- printf("---fin\n");
//gtk_extended_status_bar_remove(statusbar, 0/*id*/);