X-Git-Url: https://git.siccegge.de//index.cgi?a=blobdiff_plain;f=src%2Fdisassembler%2FDisassembler.hxx;h=285c6738462669a59767b149c7cb06115b9ed4e6;hb=b954100a7563d684439f8d6f976abc912919b5cb;hp=14083262f5027ac7b22057c009d4dfb1feeb8ff0;hpb=d84d4109b1f5bd5f87732b7e49860639d963a553;p=frida%2Ffrida.git diff --git a/src/disassembler/Disassembler.hxx b/src/disassembler/Disassembler.hxx index 1408326..285c673 100644 --- a/src/disassembler/Disassembler.hxx +++ b/src/disassembler/Disassembler.hxx @@ -5,6 +5,7 @@ #include #include "disassembler/BasicBlock.hxx" +#include "disassembler/Function.hxx" class Disassembler { @@ -15,11 +16,7 @@ public: void getSymbols(); uint64_t entryAddress(); - virtual void forEachInstruction(const std::string& name, std::function callback) = 0; - - // http://llvm.org/docs/doxygen/html/MCObjectDisassembler_8cpp_source.html +197 - BasicBlock * generateControlFlowGraph(const std::string& name); - BasicBlock * generateControlFlowGraph(uint64_t address); + virtual void forEachFunction(std::function callback) = 0; protected: virtual bool isFunctionCall(uint64_t address) = 0;