summaryrefslogtreecommitdiff
path: root/src/analysis/decomp/il.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-06-28 16:59:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-06-28 16:59:30 (GMT)
commit398c8a5b054072a6d4ecdd5d2c2df356dddaf53a (patch)
treef5e6979fcb962f5399902907b14f0cae4404c713 /src/analysis/decomp/il.c
parenta180a6b30713f38f58a9adc89d775fd142f19629 (diff)
Replaced all calls to the old API dealing with routine location.
Diffstat (limited to 'src/analysis/decomp/il.c')
-rw-r--r--src/analysis/decomp/il.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/analysis/decomp/il.c b/src/analysis/decomp/il.c
index c125412..5827c4b 100644
--- a/src/analysis/decomp/il.c
+++ b/src/analysis/decomp/il.c
@@ -485,13 +485,15 @@ GDecInstruction *decompiled_routine_instructions(GBinRoutine *routine, GExeForma
GDecInstruction *result; /* Instructions à retourner */
GDecContext *context; /* Contexte pour la décompil. */
GInstrBlock *blocks; /* Blocs basiques de routine */
+ const mrange_t *range; /* Emplacement du symbole */
context = g_arch_processor_get_decomp_context(proc);
g_dec_context_set_info(context, routine, format);
blocks = g_binary_routine_get_basic_blocks(routine);
- setup_awaited_regs_allocation(blocks, g_binary_routine_get_address(routine));
+ range = g_binary_symbol_get_range(G_BIN_SYMBOL(routine));
+ setup_awaited_regs_allocation(blocks, get_mrange_addr(range)->physical);
result = decompiled_basic_block(blocks, context);