]> git.siccegge.de Git - frida/frida.git/commitdiff
readSections() already in Disassembler constructor
authorChristoph Egger <Christoph.Egger@fau.de>
Wed, 4 Mar 2015 14:15:00 +0000 (15:15 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Wed, 4 Mar 2015 14:15:00 +0000 (15:15 +0100)
this is the one part we also need when loading from a saved file

src/disassembler/llvm/LLVMDisassembler.cxx

index abfafa48e61d566de36c3b8879c555de84290561..b40cdd4a3cd81f59dc111515ca79d169acf8fd37 100644 (file)
@@ -151,12 +151,13 @@ LLVMDisassembler<ELFT>::LLVMDisassembler(const std::string& filename,
        std::unique_ptr<MCObjectDisassembler> OD(
                new MCObjectDisassembler(*o, *DisAsm, *MIA));
        Mod.reset(OD->buildModule(false));
+
+       readSections();
 }
 
 template <typename ELFT>
 void LLVMDisassembler<ELFT>::start() {
        readSymbols();
-       readSections();
        disassemble();
        readDynamicSymbols();
 }