]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/InformationManager.hxx
Move the interpreters to the core InformationManager
[frida/frida.git] / src / core / InformationManager.hxx
index 555070abefd624cf6e19a5b84218a58ab3b73097..610ece50da253f51820e9af3679ed934008808cb 100644 (file)
@@ -6,9 +6,12 @@
 #include <functional>
 #include <string>
 #include <map>
+#include <vector>
 
 #include "disassembler/Disassembler.hxx"
 
+class Interpreter;
+
 class Function;
 class BasicBlock;
 class Comment;
@@ -17,6 +20,7 @@ class RenameFunctionEvent;
 
 class QString;
 class QTemporaryFile;
+class QPluginLoader;
 
 class InformationManager {
 public:
@@ -65,6 +69,12 @@ public:
        std::map<uint64_t, BasicBlock*>::const_iterator endBasicBlocks();
 
 
+       Interpreter* getInterpreter(const std::string& name);
+       bool hasInterpreters() const {return interpreters.size() != 0;}
+       std::map<std::string, Interpreter*>::const_iterator beginInterpreters();
+       std::map<std::string, Interpreter*>::const_iterator endInterpreters();
+
+
        /* Protocoll:
         *
         * Users may allocate new Data containers with the new*()
@@ -101,10 +111,12 @@ private:
        boost::signals2::signal<void (const std::string& name)> new_dyn_symbol_signal;
        boost::signals2::signal<void (RenameFunctionEvent*)> rename_function_signal;
        std::unique_ptr<Disassembler> disassembler;
+       std::map<std::string, Interpreter*> interpreters;
        std::map<uint64_t, Function*> functions;
        std::map<uint64_t, BasicBlock*> blocks;
        std::string filename;
        std::unique_ptr<QTemporaryFile> tmpfile;
+       std::vector<QPluginLoader*> plugins;
 
        log4cxx::LoggerPtr logger;
 };