summaryrefslogtreecommitdiff
path: root/src/analysis/disass
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/disass')
-rw-r--r--src/analysis/disass/macro.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/analysis/disass/macro.c b/src/analysis/disass/macro.c
index 60d99da..0fef9a0 100644
--- a/src/analysis/disass/macro.c
+++ b/src/analysis/disass/macro.c
@@ -587,45 +587,6 @@ static GInstrBlock *build_instruction_block(GArchInstruction *instrs, vmpa_t sta
}
-static bool print_blocks(GInstrBlock *blk, BlockVisitOrder order, int *pad)
-{
- int i;
- vmpa_t start, end;
- GInstrBlock *links;
-
- if (order != BVO_OUT)
- for (i = 0; i < *pad; i++)
- printf(" ");
-
- if (G_IS_FLOW_BLOCK(blk))
- {
- g_flow_block_get_boundary_addresses(G_FLOW_BLOCK(blk), &start, &end);
- links = g_instr_block_get_links_block(blk);
-
- if (links != NULL)
- printf(" - flow %p : 0x%08lx -> 0x%08lx (links = %p)\n", blk, start, end, links);
- else
- printf(" - flow %p : 0x%08lx -> 0x%08lx\n", blk, start, end);
-
- }
- else
- {
- if (order != BVO_OUT)
- {
- printf(" - virtual %p\n", blk);
- *pad += 1;
- }
- else *pad -= 1;
-
- }
-
- fflush(NULL);
-
- return true;
-
-}
-
-
/******************************************************************************
* *
* Paramètres : list = ensemble d'instructions à relier. *
@@ -654,16 +615,9 @@ void group_routines_instructions(GArchInstruction *list, GBinRoutine **routines,
start = g_binary_routine_get_address(routines[i]);
end = start + g_binary_routine_get_size(routines[i]);
-
- //printf("==== %s ====\n", g_binary_routine_to_string(routines[i]));
-
-
block = build_instruction_block(list, start, end, VMPA_MAX);
g_binary_routine_set_basic_blocks(routines[i], block);
-
- //g_instr_block_visit(block, (instr_block_visitor_cb)print_blocks, (int []){ 0 });
-
gtk_extended_status_bar_update_activity(statusbar, id, (i + 1) * 1.0 / count);
}