diff options
Diffstat (limited to 'src/arch/dalvik/decomp/new.c')
-rw-r--r-- | src/arch/dalvik/decomp/new.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/dalvik/decomp/new.c b/src/arch/dalvik/decomp/new.c index 75dc259..e30feb2 100644 --- a/src/arch/dalvik/decomp/new.c +++ b/src/arch/dalvik/decomp/new.c @@ -46,6 +46,7 @@ GDecInstruction *dalvik_decomp_instr_new_instance(const GArchInstruction *instr, GDecContext *ctx) { GDecInstruction *result; /* Instruction à retourner */ + vmpa_t addr; /* Adresse de l'instruction */ GArchOperand *operand; /* Opérande de l'instruction */ uint32_t index; /* Indice dans la table */ GDataType *type; /* Type concerné par l'opérat° */ @@ -53,6 +54,8 @@ GDecInstruction *dalvik_decomp_instr_new_instance(const GArchInstruction *instr, GDecInstruction *call; /* Appel au constructeur */ GDecInstruction *dest; /* Registre de destination */ + g_arch_instruction_get_location(instr, NULL, NULL, &addr); + operand = g_arch_instruction_get_operand(instr, 1); index = g_dalvik_pool_operand_get_index(G_DALVIK_POOL_OPERAND(operand)); type = get_type_from_dex_pool(G_DEX_FORMAT(g_dec_context_get_format(ctx)), index); @@ -61,7 +64,7 @@ GDecInstruction *dalvik_decomp_instr_new_instance(const GArchInstruction *instr, call = g_routine_call_new(constructor); operand = g_arch_instruction_get_operand(instr, 0); - dest = g_dec_context_convert_register(ctx, operand, true); + dest = g_dec_context_convert_register(ctx, operand, true, addr); result = g_assign_expression_new(G_DEC_EXPRESSION(dest), G_DEC_EXPRESSION(call)); |