]> git.siccegge.de Git - frida/frida.git/commitdiff
Add comments
authorChristoph Egger <christoph@christoph-egger.org>
Mon, 12 Oct 2015 06:52:05 +0000 (08:52 +0200)
committerChristoph Egger <christoph@christoph-egger.org>
Mon, 12 Oct 2015 06:52:05 +0000 (08:52 +0200)
src/core/Function.hxx
src/core/InformationManager.hxx

index 98417de2a7639d05b76a2a49a49f91946d0137c3..3a328f6d203c027b57acf18b034477d4ff7192cd 100644 (file)
@@ -17,6 +17,9 @@ public:
 
        InformationManager* getManager() const { return manager; }
 
+       /* Dynamic functions are the ones which are imported from shared
+        * libraries and not structly part of the binary at hand
+        */
        bool isDynamic() const { return dynamic; }
 
        void addBasicBlock(BasicBlock* block) {
index 30444acf068da98a39fb711c623c9976ac7a6d08..7d380078d9db88f66f9ca3e588dbdaf9f55f8a27 100644 (file)
@@ -42,16 +42,25 @@ public:
        InformationManager();
        ~InformationManager();
 
+       // Start working on a fresh binary
        void reset(const std::string& filename);
+
+       // Load a saved binary
        void load(const std::string& filename);
+
+       // Save current state to disk
        void save(const std::string& filename);
 
        Disassembler* getDisassembler()
                { return disassembler.get(); }
 
        // Accessors
-       Function* getFunction(uint64_t address);
+       /* Used by the disassembler to determine whether to use unsafe
+        * heuristics for finding an entry point
+        */
        bool hasFunctions() const {return functions.size() != 0;}
+
+       Function* getFunction(uint64_t address);
        std::map<uint64_t, Function*>::const_iterator beginFunctions();
        std::map<uint64_t, Function*>::const_iterator endFunctions();