diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-12-16 21:13:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-12-16 21:13:42 (GMT) |
commit | 04dfbc68e7cd5036017f097a67ba5f0288ddace0 (patch) | |
tree | 2cf10137c3c47c1c0877c67b48f7aeb86d9cbfcb /src/analysis | |
parent | a1c2bc0c3b6f4b4fda9c50beeb09a1f699419e2a (diff) |
Created operands for resolving symbols in disassembly code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@442 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/disass/fetch.c | 10 | ||||
-rw-r--r-- | src/analysis/disass/links.c | 4 | ||||
-rw-r--r-- | src/analysis/disass/loop.c | 4 | ||||
-rw-r--r-- | src/analysis/disass/output.c | 2 | ||||
-rw-r--r-- | src/analysis/routine.h | 4 |
5 files changed, 22 insertions, 2 deletions
diff --git a/src/analysis/disass/fetch.c b/src/analysis/disass/fetch.c index f10178a..dea6645 100644 --- a/src/analysis/disass/fetch.c +++ b/src/analysis/disass/fetch.c @@ -430,6 +430,16 @@ static GArchInstruction *load_code_binary(const GLoadedBinary *binary, const vmp //done += (new_phy - old_phy); //gtk_extended_status_bar_update_activity(statusbar, id, done * 1.0 / sum); + + + + + + g_arch_instruction_call_post_prod_function(instr, format); /* FIXME */ + + + + } return result; diff --git a/src/analysis/disass/links.c b/src/analysis/disass/links.c index d437682..dc870fc 100644 --- a/src/analysis/disass/links.c +++ b/src/analysis/disass/links.c @@ -25,6 +25,10 @@ +#include "../../arch/instruction.h" + + + /****************************************************************************** * * * Paramètres : list = ensemble d'instructions à relier. * diff --git a/src/analysis/disass/loop.c b/src/analysis/disass/loop.c index 79e3786..0a06748 100644 --- a/src/analysis/disass/loop.c +++ b/src/analysis/disass/loop.c @@ -30,6 +30,10 @@ +#include "../../arch/instruction.h" + + + /* Suivi du flot d'exécution */ typedef struct _exec_flow { diff --git a/src/analysis/disass/output.c b/src/analysis/disass/output.c index 97924cd..eb53206 100644 --- a/src/analysis/disass/output.c +++ b/src/analysis/disass/output.c @@ -189,7 +189,7 @@ void print_disassembled_instructions(GCodeBuffer *buffer, const GExeFormat *form g_buffer_line_fill_mrange(line, msize, msize); g_buffer_line_start_merge_at(line, BLC_ASSEMBLY_HEAD); - g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, label, strlen(label), RTT_COMMENT); + g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, label, strlen(label), RTT_LABEL); g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, ":", 1, RTT_PUNCT); diff --git a/src/analysis/routine.h b/src/analysis/routine.h index 3aa33ac..177547b 100644 --- a/src/analysis/routine.h +++ b/src/analysis/routine.h @@ -32,10 +32,12 @@ #include "block.h" #include "variable.h" -#include "../arch/instruction.h" +//#include "../arch/instruction.h" #include "../decomp/instruction.h" +typedef struct _GArchInstruction GArchInstruction; + /* Type de routine traitée */ typedef enum _RoutineType |