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) {
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();