summaryrefslogtreecommitdiff
path: root/src/analysis/disass/fetch.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-06-20 21:19:05 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-06-20 21:19:05 (GMT)
commitb01b4405c1c8a6d6e6bfade4b790cabde2e9f4d6 (patch)
tree592a4d27bd3448224d54fa48b150c83a5271a721 /src/analysis/disass/fetch.c
parent4f367c98d76b8eab6adff5d9e6e43fbe74d1259c (diff)
Ensured all code has been disassembled before loading data.
Diffstat (limited to 'src/analysis/disass/fetch.c')
-rw-r--r--src/analysis/disass/fetch.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/analysis/disass/fetch.c b/src/analysis/disass/fetch.c
index 03b3ff0..fc1c2ab 100644
--- a/src/analysis/disass/fetch.c
+++ b/src/analysis/disass/fetch.c
@@ -463,7 +463,7 @@ GArchInstruction **disassemble_binary_content(GLoadedBinary *binary, GProcContex
gtk_status_stack_update_activity(status, template.id, _("Disassembling the remaining instructions..."));
- ensure_all_mem_areas_are_filled(template.areas, template.count, template.ctx, status, template.id);
+ ensure_all_mem_areas_are_filled(template.areas, template.count, true, template.ctx, status, template.id);
g_work_queue_wait_for_completion(queue, gid);
@@ -471,6 +471,12 @@ GArchInstruction **disassemble_binary_content(GLoadedBinary *binary, GProcContex
g_object_set_data(G_OBJECT(template.ctx), "remaining_counter", NULL);
+ gtk_status_stack_update_activity(status, template.id, _("Filling holes with data..."));
+
+ ensure_all_mem_areas_are_filled(template.areas, template.count, false, template.ctx, status, template.id);
+
+ g_work_queue_wait_for_completion(queue, gid);
+
gtk_status_stack_remove_activity(status, template.id);
/**