diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-11-19 21:26:51 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-11-19 21:26:51 (GMT) |
commit | 5a70286f7f56cc72a0249fcaf404afabfb033956 (patch) | |
tree | ef2b94b04a3e84b93832749ccf6cd9b9cc370d3c /src/arch/instruction.c | |
parent | 760e2e7346518dd1264126c1696f9ad88884d64c (diff) |
Handled Dalvik exception handlers in the graphic view.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@285 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index b553aec..98d7c85 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -381,7 +381,9 @@ bool g_arch_instruction_has_sources(const GArchInstruction *instr) bool g_arch_instruction_has_destinations(const GArchInstruction *instr) { - return (instr->to_count > 1 || (instr->to_count == 1 && instr->links_type[0] != ILT_CALL)); + /* FIXME !? */ + //return (instr->to_count > 1 || (instr->to_count == 1 && instr->links_type[0] != ILT_CALL)); + return (instr->to_count > 0); } @@ -607,6 +609,30 @@ void g_arch_instruction_add_to_list(GArchInstruction **list, GArchInstruction *i * * * Paramètres : list = liste d'instructions à consulter. * * : iter = position actuelle dans la liste. * +* * +* Description : Fournit l'élement suivant un autre pour un parcours. * +* * +* Retour : Elément suivant ou NULL si aucun. * +* * +* Remarques : - * +* * +******************************************************************************/ + +GArchInstruction *g_arch_instruction_get_prev_iter(const GArchInstruction *list, const GArchInstruction *iter) +{ + GArchInstruction *result; /* Elément suivant à renvoyer */ + + result = ainstr_list_prev_iter(iter, list); + + return result; + +} + + +/****************************************************************************** +* * +* Paramètres : list = liste d'instructions à consulter. * +* : iter = position actuelle dans la liste. * * max = adresse marquant la limite (exclue) du parcours. * * * * Description : Fournit l'élement suivant un autre pour un parcours. * |