summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/analysis/binary.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e58017..2314027 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
14-11-24 Cyrille Bagard <nocbos@gmail.com>
+ * src/analysis/binary.c:
+ Load empty collections for all binaries.
+
+14-11-24 Cyrille Bagard <nocbos@gmail.com>
+
* src/arch/arm/v7/arm.c:
Extend the ARM decoding and fix some masks.
diff --git a/src/analysis/binary.c b/src/analysis/binary.c
index 6c8bcba..d7f89b1 100644
--- a/src/analysis/binary.c
+++ b/src/analysis/binary.c
@@ -40,6 +40,7 @@
#include "disass/disassembler.h"
#include "../common/extstr.h"
#include "../common/cpp.h"
+#include "../core/collections.h"
#include "../core/params.h"
#include "../glibext/chrysamarshal.h"
@@ -153,6 +154,8 @@ static void g_loaded_binary_init(GLoadedBinary *binary)
binary->storages[DBF_SEGMENTS_DISPLAY] = DBS_ALL_LOCAL;
binary->storages[DBF_BOOKMARKS] = DBS_ALL_LOCAL;
+ binary->collections = create_collections_list();
+
binary->col_display[BVW_BLOCK][BLC_PHYSICAL] = true;
binary->col_display[BVW_BLOCK][BLC_VIRTUAL] = true;
binary->col_display[BVW_BLOCK][BLC_BINARY] = true;
@@ -263,10 +266,11 @@ GLoadedBinary *g_loaded_binary_new_from_xml(xmlXPathContextPtr context, const ch
if (result == NULL)
return NULL;
- /* --------- %< --------- TODO : à bouger pur + de générique --------- %< --------- */
+ /* --------- %< --------- TODO : à bouger pour + de générique --------- %< --------- */
- result->collections = create_collections_list();
+ // -> init()
+ //result->collections = create_collections_list();
if (!g_loaded_binary_load_storage(result, context, path))