]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/InformationManager.hxx
Properly initialize end address in BasicBlock
[frida/frida.git] / src / core / InformationManager.hxx
index f6eeb30f4cede67fbe4b28989993ea0815305133..f3f34069362ce9541e9f289906d94c71d0ab53e2 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef INCLUDE__InformationManager_hxx
 #define INCLUDE__InformationManager_hxx
 
+#include <log4cxx/logger.h>
 #include <boost/signals2.hpp>
 #include <functional>
 #include <string>
@@ -13,15 +14,18 @@ class BasicBlock;
 class Comment;
 
 class QString;
+class QTemporaryFile;
 
 class RenameFunctionEvent;
 
 class InformationManager {
 public:
+       InformationManager();
        ~InformationManager();
 
        void reset(const std::string& filename);
-       void save(const QString& filename);
+       void load(const std::string& filename);
+       void save(const std::string& filename);
 
        void signal_new_function(Function* f);
        void signal_new_dyn_symbol(const std::string& f)
@@ -90,6 +94,10 @@ private:
        std::unique_ptr<Disassembler> disassembler;
        std::map<uint64_t, Function*> functions;
        std::map<uint64_t, BasicBlock*> blocks;
+       std::string filename;
+       std::unique_ptr<QTemporaryFile> tmpfile;
+
+       log4cxx::LoggerPtr logger;
 };
 
 #endif /* INCLUDE__InformationManager_hxx */