]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/InformationManager.hxx
Finish archive loading
[frida/frida.git] / src / core / InformationManager.hxx
index 2e9358c9afdd05301d901241828b797e0877acc8..557816877ec9ded8804bd0f88118191818573062 100644 (file)
@@ -8,6 +8,7 @@
 #include <map>
 
 #include "disassembler/Disassembler.hxx"
+#include <QTemporaryFile>
 
 class Function;
 class BasicBlock;
@@ -19,10 +20,12 @@ 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)
@@ -92,6 +95,7 @@ private:
        std::map<uint64_t, Function*> functions;
        std::map<uint64_t, BasicBlock*> blocks;
        std::string filename;
+       std::unique_ptr<QTemporaryFile> tmpfile;
 
        log4cxx::LoggerPtr logger;
 };