We should probably wait for the disassembler to work through the
binary before trying to retrieve the functions. Then however we can't
really decide whether the disassembler failed to find the function or
is just slow.
disassembler.reset(createLLVMDisassembler(filename, this));
if (disassembler.get() != NULL) {
emit resetEvent();
+#ifndef CONFIG_TEST
disassembler.get()->moveToThread(&disassemblerThread);
connect(&disassemblerThread, &QThread::started,
disassembler.get(), &Disassembler::start);
disassemblerThread.start();
+#else
+ disassembler.get()->start();
+#endif
}
}