summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-07-17 16:36:21 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-07-17 16:36:21 (GMT)
commit24d3836fcf8d443eb654b981f65478cd9923b8f1 (patch)
tree7672a28b864127e8958c3c6cce751dcf646d2fbe /src/arch
parenta61f089babe336b012da31a494b0f7470b6e1a9a (diff)
Updated the Python bindings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@552 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/instruction.c5
-rw-r--r--src/arch/processor.c3
-rw-r--r--src/arch/vmpa.c2
-rw-r--r--src/arch/vmpa.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c
index b895af0..d6bf183 100644
--- a/src/arch/instruction.c
+++ b/src/arch/instruction.c
@@ -250,9 +250,6 @@ void g_arch_instruction_set_hook(GArchInstruction *instr, InstrProcessHook type,
void g_arch_instruction_call_hook(GArchInstruction *instr, InstrProcessHook type, GArchProcessor *proc, GProcContext *context, GBinFormat *format)
{
- if (instr->range.addr.virtual == 0x83c2)
- printf(" [%u] HAS BRANCH ? %p\n", (unsigned int)type, instr->hooks[type]);
-
assert(type < IPH_COUNT);
if (instr->hooks[type] != NULL)
@@ -671,7 +668,7 @@ bool g_arch_instruction_has_sources(const GArchInstruction *instr)
* *
* Description : Fournit les origines d'une instruction donnée. *
* *
-* Retour : Nombre de ces destinations. *
+* Retour : Nombre de ces origines. *
* *
* Remarques : - *
* *
diff --git a/src/arch/processor.c b/src/arch/processor.c
index 86e7845..95176e9 100644
--- a/src/arch/processor.c
+++ b/src/arch/processor.c
@@ -327,6 +327,9 @@ void g_arch_processor_set_disassembled_instructions(GArchProcessor *proc, GArchI
{
GArchInstruction *iter; /* Boucle de parcours */
+ /* TODO : vider une éventuelle liste existante */
+ /* TODO : incrémenter les références (cf. code Python) */
+
ainstr_list_for_each(iter, list)
{
/* Mise à disposition de d'avantage d'espace */
diff --git a/src/arch/vmpa.c b/src/arch/vmpa.c
index b10b007..d966341 100644
--- a/src/arch/vmpa.c
+++ b/src/arch/vmpa.c
@@ -913,7 +913,7 @@ bool mrange_contains_addr_inclusive(const mrange_t *range, const vmpa2t *addr)
* Paramètres : range = zone mémoire à consulter. *
* addr = localisation mémoire à déterminer. *
* *
-* Description : Calcule la position extérieure final d'une couverture. *
+* Description : Calcule la position extérieure finale d'une couverture. *
* *
* Retour : - *
* *
diff --git a/src/arch/vmpa.h b/src/arch/vmpa.h
index 4611ebf..368b765 100644
--- a/src/arch/vmpa.h
+++ b/src/arch/vmpa.h
@@ -193,7 +193,7 @@ bool mrange_contains_addr(const mrange_t *, const vmpa2t *);
/* Indique si une localisation est incluse dans une zone ou non. */
bool mrange_contains_addr_inclusive(const mrange_t *, const vmpa2t *);
-/* Calcule la position extérieure final d'une couverture. */
+/* Calcule la position extérieure finale d'une couverture. */
void compute_mrange_end_addr(const mrange_t *, vmpa2t *);
/* Transforme un emplacement physique en chaîne de caractères. */