X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FInformationManager.hxx;h=ddba5a3f8e4080f49b4f8cedbd6a51cd47c9a1f5;hp=30444acf068da98a39fb711c623c9976ac7a6d08;hb=HEAD;hpb=217321b48c503edd5b35f35158ba68a04d81ecd3 diff --git a/src/core/InformationManager.hxx b/src/core/InformationManager.hxx index 30444ac..ddba5a3 100644 --- a/src/core/InformationManager.hxx +++ b/src/core/InformationManager.hxx @@ -42,16 +42,27 @@ 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;} + + uint64_t getEntryAddress() {return disassembler->entryAddress();} + + Function* getFunction(uint64_t address); std::map::const_iterator beginFunctions(); std::map::const_iterator endFunctions();