summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-06-06 16:34:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-06-06 16:34:00 (GMT)
commit8827cf755762f70f0c4edb3bafe5d79b9fee0f15 (patch)
tree1417fac02b61c037f98f23a9c107f3bb4accaea7 /src/gui
parent4b36edf684b49eb5584f8f0c5aff3dd7aac2c834 (diff)
Hidden virtual addresses when code runs in a VM.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/panels/errors.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/panels/errors.c b/src/gui/panels/errors.c
index a529314..161d1ab 100644
--- a/src/gui/panels/errors.c
+++ b/src/gui/panels/errors.c
@@ -1139,6 +1139,8 @@ static void g_error_panel_conclude(GErrorPanel *panel, unsigned int uid, error_u
{
GtkBuilder *builder; /* Constructeur utilisé */
GtkTreeView *treeview; /* Arborescence graphique */
+ GArchProcessor *proc; /* Architecture du binaire */
+ GtkTreeViewColumn *virt_col; /* Colonne des espaces virtuels*/
GtkTreeModel *model; /* Source de données associée */
if (g_atomic_int_get(&G_PANEL_ITEM(panel)->switched) > 1)
@@ -1157,6 +1159,14 @@ static void g_error_panel_conclude(GErrorPanel *panel, unsigned int uid, error_u
treeview = GTK_TREE_VIEW(gtk_builder_get_object(builder, "treeview"));
+ proc = g_loaded_binary_get_processor(panel->binary);
+
+ virt_col = gtk_tree_view_get_column(treeview, 1);
+
+ gtk_tree_view_column_set_visible(virt_col, g_arch_processor_has_virtual_space(proc));
+
+ g_object_unref(G_OBJECT(proc));
+
model = GTK_TREE_MODEL(gtk_builder_get_object(builder, "filter"));
g_object_ref(G_OBJECT(model));