summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-11-24 21:03:28 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-11-24 21:03:28 (GMT)
commit7ea3e51bf10ec0ed8f3cbd7c40564485426943f7 (patch)
tree9dd0da07d9ad9ada39d6fc1b130561e15e489b17
parent96eee784837e6ed4cf9ce5f1cb2e0f8bff8bd9bf (diff)
Loaded empty collections for all binaries.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@424 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
-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))