diff options
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 |