diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-06-28 16:59:30 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-06-28 16:59:30 (GMT) |
commit | 398c8a5b054072a6d4ecdd5d2c2df356dddaf53a (patch) | |
tree | f5e6979fcb962f5399902907b14f0cae4404c713 /src/analysis/decomp | |
parent | a180a6b30713f38f58a9adc89d775fd142f19629 (diff) |
Replaced all calls to the old API dealing with routine location.
Diffstat (limited to 'src/analysis/decomp')
-rw-r--r-- | src/analysis/decomp/decompiler.c | 6 | ||||
-rw-r--r-- | src/analysis/decomp/il.c | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/analysis/decomp/decompiler.c b/src/analysis/decomp/decompiler.c index 432e924..03d2b70 100644 --- a/src/analysis/decomp/decompiler.c +++ b/src/analysis/decomp/decompiler.c @@ -169,8 +169,8 @@ static void prepare_all_routines_for_decomp(const GLoadedBinary *binary, const c /* instrs = g_binary_routine_get_instructions(routines[i]); - max = g_binary_routine_get_address(routines[i]) - + g_binary_routine_get_size(routines[i]); + max = g_XXX_binary_routine_get_address(routines[i]) + + g_XXX_binary_routine_get_size(routines[i]); */ //printf("\n##### DECOMPILE '%s' #####\n", g_binary_routine_to_string(routines[i])); @@ -179,7 +179,7 @@ static void prepare_all_routines_for_decomp(const GLoadedBinary *binary, const c /* dinstrs = build_decompiled_block(instrs, - g_binary_routine_get_address(routines[i]), + g_XXX_binary_routine_get_address(routines[i]), max, VMPA_MAX, context); */ 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); |