From: Christoph Egger Date: Wed, 4 Mar 2015 14:15:00 +0000 (+0100) Subject: readSections() already in Disassembler constructor X-Git-Tag: v0.1~77 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=c79a955e4fe1cad85b526bdc4af86d1226f99329;p=frida%2Ffrida.git readSections() already in Disassembler constructor this is the one part we also need when loading from a saved file --- diff --git a/src/disassembler/llvm/LLVMDisassembler.cxx b/src/disassembler/llvm/LLVMDisassembler.cxx index abfafa4..b40cdd4 100644 --- a/src/disassembler/llvm/LLVMDisassembler.cxx +++ b/src/disassembler/llvm/LLVMDisassembler.cxx @@ -151,12 +151,13 @@ LLVMDisassembler::LLVMDisassembler(const std::string& filename, std::unique_ptr OD( new MCObjectDisassembler(*o, *DisAsm, *MIA)); Mod.reset(OD->buildModule(false)); + + readSections(); } template void LLVMDisassembler::start() { readSymbols(); - readSections(); disassemble(); readDynamicSymbols(); }