diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-11-13 20:31:09 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-11-13 20:31:09 (GMT) |
commit | 866993263387f96ebe2e482d63c9c4225e2c6085 (patch) | |
tree | 2c6c802bc04e6c2b9b43db8adbeb8352f86fef49 /src/arch | |
parent | b36b57e81623194ba56d4862d2fba49d944a2793 (diff) |
Improved the flow graph a little more.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@283 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/dalvik/instruction.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/arch/dalvik/instruction.c b/src/arch/dalvik/instruction.c index a1f29bc..065c67a 100644 --- a/src/arch/dalvik/instruction.c +++ b/src/arch/dalvik/instruction.c @@ -508,6 +508,18 @@ static InstructionLinkType dalvik_get_instruction_link(const GDalvikInstruction switch (instr->type) { + case DOP_GOTO: + case DOP_GOTO_16: + case DOP_GOTO_32: + + operand = g_arch_instruction_get_operand(G_ARCH_INSTRUCTION(instr), 0); + imm = g_dalvik_target_operand_get_value(G_DALVIK_TARGET_OPERAND(operand)); + + if (g_imm_operand_to_vmpa_t(imm, addr)) result = ILT_JUMP; + else result = ILT_NONE; + + break; + case DOP_IF_EQ: case DOP_IF_NE: case DOP_IF_LT: |