summaryrefslogtreecommitdiff
path: root/src/analysis/binary.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/binary.c')
-rw-r--r--src/analysis/binary.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index 949bb31..0159b29 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -593,6 +593,22 @@ static void limit_all_routines(GRenderingLine *lines, GBinRoutine **routines, si
for (i = 0; i < count; i++)
{
+ /* Instruction de départ */
+
+ /* FIXME : faire mieux ! */
+
+ line = g_rendering_line_find_by_address(lines, NULL, starts[i]);
+ if (line != NULL) line = g_rendering_line_loop_for_code(line, NULL);
+
+ if (line != NULL)
+ {
+ instr = g_code_line_get_instruction(G_CODE_LINE(line));
+
+ g_binary_routine_set_instructions(routines[i], instr);
+
+ }
+
+
if (lengths[i] > 0) continue;
start = g_binary_routine_get_address(routines[i]);