diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-03-05 00:17:30 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-03-05 00:17:30 (GMT) |
commit | 13bd8d546b2de76b1f5a1d758c9e476f7d859f39 (patch) | |
tree | 3d1c7dc3343ad4d460a9245bd2bb138fada611b3 /src/arch/dalvik/processor.c | |
parent | aba1a14ba28f6df51b3be15648b6f55eea4a0e19 (diff) |
Printed the string values of the Dex pool in the operand rendering.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@237 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/dalvik/processor.c')
-rw-r--r-- | src/arch/dalvik/processor.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/arch/dalvik/processor.c b/src/arch/dalvik/processor.c index 1304b8e..ca571c6 100644 --- a/src/arch/dalvik/processor.c +++ b/src/arch/dalvik/processor.c @@ -2,7 +2,7 @@ /* OpenIDA - Outil d'analyse de fichiers binaires * processor.c - manipulation du processeur de la VM Dalvik * - * Copyright (C) 2010-2011 Cyrille Bagard + * Copyright (C) 2010-2012 Cyrille Bagard * * This file is part of OpenIDA. * @@ -62,7 +62,7 @@ static GDalvikContext *g_dalvik_processor_get_context(const GDalvikProcessor *); static GArchInstruction *g_dalvik_guess_pseudo_instruction(const GDalvikProcessor *, const bin_t *, off_t *, off_t, vmpa_t); /* Décode une instruction dans un flux de données. */ -static GArchInstruction *g_dalvik_processor_decode_instruction(const GDalvikProcessor *, GDalvikContext *, const bin_t *, off_t *, off_t, vmpa_t); +static GArchInstruction *g_dalvik_processor_decode_instruction(const GDalvikProcessor *, GDalvikContext *, const bin_t *, off_t *, off_t, vmpa_t, GDexFormat *); /* Indique le type défini par la GLib pour le processeur DALVIK. */ @@ -212,12 +212,13 @@ static GArchInstruction *g_dalvik_guess_pseudo_instruction(const GDalvikProcesso /****************************************************************************** * * -* Paramètres : proc = architecture visée par la procédure. * -* ctx = contexte lié à l'exécution du processeur. * -* data = flux de données à analyser. * -* pos = position courante dans ce flux. [OUT] * -* len = taille totale des données à analyser. * -* addr = adresse virtuelle de l'instruction. * +* Paramètres : proc = architecture visée par la procédure. * +* ctx = contexte lié à l'exécution du processeur. * +* data = flux de données à analyser. * +* pos = position courante dans ce flux. [OUT] * +* len = taille totale des données à analyser. * +* addr = adresse virtuelle de l'instruction. * +* format = format du fichier contenant le code. * * * * Description : Décode une instruction dans un flux de données. * * * @@ -227,7 +228,7 @@ static GArchInstruction *g_dalvik_guess_pseudo_instruction(const GDalvikProcesso * * ******************************************************************************/ -static GArchInstruction *g_dalvik_processor_decode_instruction(const GDalvikProcessor *proc, GDalvikContext *ctx, const bin_t *data, off_t *pos, off_t len, vmpa_t addr) +static GArchInstruction *g_dalvik_processor_decode_instruction(const GDalvikProcessor *proc, GDalvikContext *ctx, const bin_t *data, off_t *pos, off_t len, vmpa_t addr, GDexFormat *format) { GArchInstruction *result; /* Instruction à renvoyer */ DalvikOpcodes id; /* Identifiant d'instruction */ @@ -441,7 +442,7 @@ static GArchInstruction *g_dalvik_processor_decode_instruction(const GDalvikProc if (id != DOP_COUNT) { (*pos)++; - result = decodings[id](data, pos, len, addr, proc); + result = decodings[id](data, pos, len, addr, proc, format); } } |