]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/InformationManager.hxx
Some comments
[frida/frida.git] / src / core / InformationManager.hxx
index bb37a1e9a69ee9965b82a031b4e8d7bb9853d3f8..4fdfb7435cd9ea942fafb82a1b3c090e795dc17a 100644 (file)
@@ -59,9 +59,11 @@ public:
        void dispatch(ChangeCommentEvent* event)
                { changeCommentSignal(event); }
 
+       // Reset frida
        connection connect_reset_signal(std::function<void ()> f)
                { return reset_signal.connect(f); }
 
+       // Accessors
        Function* getFunction(uint64_t address);
        bool hasFunctions() const {return functions.size() != 0;}
        std::map<uint64_t, Function*>::const_iterator beginFunctions();
@@ -72,12 +74,19 @@ public:
        std::map<uint64_t, BasicBlock*>::const_iterator beginBasicBlocks();
        std::map<uint64_t, BasicBlock*>::const_iterator endBasicBlocks();
 
+       std::pair<
+               std::multimap<uint64_t, Comment*>::const_iterator,
+               std::multimap<uint64_t, Comment*>::const_iterator>
+       getComments(uint64_t address);
+       bool hasComments() const {return ! comments.empty();}
+       std::multimap<uint64_t,Comment*>::const_iterator beginComments();
+       std::multimap<uint64_t,Comment*>::const_iterator endComments();
+
        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*()
@@ -104,7 +113,7 @@ public:
        Comment* newLocalComment(uint64_t address, Function* f);
        void finishFunction(Function* f);
        void finishBasicBlock(BasicBlock* b);
-       void finnishComment(Comment* c);
+       void finishComment(Comment* c);
        void deleteFunction(Function* f);
        void deleteBasicBlock(BasicBlock* b);
        void deleteComment(Comment* c);