summaryrefslogtreecommitdiff
path: root/src/analysis/disass/macro.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2013-01-26 19:41:04 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2013-01-26 19:41:04 (GMT)
commit2050b07c42c15738662dd9b3c5841694b64ab2a3 (patch)
treef6283df4b4775f0c4e42e14025d67443f8fdf9b5 /src/analysis/disass/macro.c
parentb0b35292cb22899b1b23556be452eb827e4010d7 (diff)
Provided some debug helpers as plugin samples.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@330 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/disass/macro.c')
-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);
}