diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-10-11 20:50:03 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-10-11 20:50:03 (GMT) |
commit | ffc49de3b424d3daf08b5fdeefd4a3ede6defd02 (patch) | |
tree | cf1a96860e922715bcab55126f8095b7f562d2a1 /src/arch | |
parent | a5e162d47a574f334b172dfee3128a40e8d52fb3 (diff) |
Improved the disassembling process using memory ranges.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@411 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/instruction.c | 20 | ||||
-rw-r--r-- | src/arch/instruction.h | 3 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index 402b0f5..8312bf6 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -829,6 +829,26 @@ void g_arch_instruction_add_to_list(GArchInstruction **list, GArchInstruction *i /****************************************************************************** * * +* Paramètres : list1 = première liste à traiter. * +* list2 = seconde liste à traiter. * +* * +* Description : Fusionne deux listes d'instructions. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void g_arch_instruction_merge_lists(GArchInstruction **list1, GArchInstruction **list2) +{ + ainstr_list_merge(list1, list2); + +} + + +/****************************************************************************** +* * * Paramètres : list = liste d'instructions à consulter. * * : iter = position actuelle dans la liste. * * * diff --git a/src/arch/instruction.h b/src/arch/instruction.h index 4fe0569..eadac8b 100644 --- a/src/arch/instruction.h +++ b/src/arch/instruction.h @@ -168,6 +168,9 @@ GArchInstruction *g_arch_instruction_find_last(const GArchInstruction *); /* Ajoute une instruction à un ensemble existant. */ void g_arch_instruction_add_to_list(GArchInstruction **, GArchInstruction *); +/* Fusionne deux listes d'instructions. */ +void g_arch_instruction_merge_lists(GArchInstruction **, GArchInstruction **); + /* Fournit l'élement suivant un autre pour un parcours. */ GArchInstruction *g_arch_instruction_get_prev_iter(const GArchInstruction *, const GArchInstruction *); |