X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2FBinary.hxx;h=1a865783f850633d6fbb4e8c80e0542168ddd3c1;hp=873ac06fa72ff71f50040a26249daf0457147067;hb=59181afa72eb08a7716d5bebd83b0be6a972e5f1;hpb=05fded85315e1977895450456f77d740770d2a9c diff --git a/src/Binary.hxx b/src/Binary.hxx index 873ac06..1a86578 100644 --- a/src/Binary.hxx +++ b/src/Binary.hxx @@ -1,7 +1,7 @@ #ifndef INCLUDE__Binary_hxx #define INCLUDE__Binary_hxx -#include "include.hxx" +#include "include_llvm.hxx" #include "Section.hxx" #include @@ -10,43 +10,41 @@ using llvm::OwningPtr; -namespace qtlldb { - class Binary { - public: - Binary(const std::string& filename); - - void disassemble(); - - void disassemble_functions(); - - void disassemble_cfg(); - - std::vector getSymbols(); - - std::vector getFunctions(); - void for_each_instruction(const std::string& function, std::function callback); - - private: - llvm::Triple triple; - const llvm::Target * target; - llvm::object::ObjectFile * o; - - llvm::object::Binary* binary; - OwningPtr MRI; - OwningPtr AsmInfo; - OwningPtr Mod; - OwningPtr IP; - OwningPtr DisAsm; - OwningPtr MOFI; - OwningPtr Ctx; - OwningPtr MIA; - OwningPtr STI; - OwningPtr MII; - OwningPtr RelInfo; - OwningPtr Symzer; - - std::map sections; - std::map symbols; - }; -} +class Binary { +public: + Binary(const std::string& filename); + + void disassemble(); + + void disassemble_functions(); + + void disassemble_cfg(); + + std::vector getSymbols(); + + std::vector getFunctions(); + void for_each_instruction(const std::string& function, std::function callback); + +private: + llvm::Triple triple; + const llvm::Target * target; + llvm::object::ObjectFile * o; + + llvm::object::Binary* binary; + OwningPtr MRI; + OwningPtr AsmInfo; + OwningPtr Mod; + OwningPtr IP; + OwningPtr DisAsm; + OwningPtr MOFI; + OwningPtr Ctx; + OwningPtr MIA; + OwningPtr STI; + OwningPtr MII; + OwningPtr RelInfo; + OwningPtr Symzer; + + std::map sections; + std::map symbols; +}; #endif