X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FInformationManager.hxx;fp=src%2Fcore%2FInformationManager.hxx;h=7d380078d9db88f66f9ca3e588dbdaf9f55f8a27;hp=30444acf068da98a39fb711c623c9976ac7a6d08;hb=0aa4fc2a1f3d5a9e6e7c48f4681c1231e9c7697b;hpb=d7319bb99ab84eec0c3608356bada2e5334e3e87 diff --git a/src/core/InformationManager.hxx b/src/core/InformationManager.hxx index 30444ac..7d38007 100644 --- a/src/core/InformationManager.hxx +++ b/src/core/InformationManager.hxx @@ -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::const_iterator beginFunctions(); std::map::const_iterator endFunctions();