void GdbPlainEngine::handleFileExecAndSymbols(const GdbResponse &response) { QTC_ASSERT(state() == InferiorSetupRequested, qDebug() << state()); if (response.resultClass == GdbResultDone) { handleInferiorPrepared(); } else { QByteArray ba = response.data["msg"].data(); QString msg = fromLocalEncoding(ba); // Extend the message a bit in unknown cases. if (!ba.endsWith("File format not recognized")) msg = tr("Starting executable failed:\n") + msg; notifyInferiorSetupFailed(msg); } }
void AbstractPlainGdbAdapter::handleExecRun(const GdbResponse &response) { QTC_ASSERT(state() == EngineRunRequested, qDebug() << state()); if (response.resultClass == GdbResultRunning) { m_engine->notifyEngineRunAndInferiorRunOk(); //showStatusMessage(tr("Running...")); showMessage(_("INFERIOR STARTED")); showMessage(msgInferiorSetupOk(), StatusBar); // FIXME: That's the wrong place for it. if (debuggerCore()->boolSetting(EnableReverseDebugging)) m_engine->postCommand("target record"); } else { QString msg = fromLocalEncoding(response.data.findChild("msg").data()); //QTC_CHECK(status() == InferiorRunOk); //interruptInferior(); showMessage(msg); m_engine->notifyEngineRunFailed(); } }
void GdbPlainEngine::handleExecRun(const DebuggerResponse &response) { QTC_ASSERT(state() == EngineRunRequested, qDebug() << state()); if (response.resultClass == ResultRunning) { notifyEngineRunAndInferiorRunOk(); // For gdb < 7.0 //showStatusMessage(tr("Running...")); showMessage(_("INFERIOR STARTED")); showMessage(msgInferiorSetupOk(), StatusBar); // FIXME: That's the wrong place for it. if (boolSetting(EnableReverseDebugging)) runCommand({"target record", NoFlags}); } else { QString msg = fromLocalEncoding(response.data["msg"].data()); //QTC_CHECK(status() == InferiorRunOk); //interruptInferior(); showMessage(msg); notifyEngineRunFailed(); } }
void AbstractPlainGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response) { QTC_ASSERT(state() == InferiorSetupRequested, qDebug() << state()); if (response.resultClass == GdbResultDone) { if (infoTargetNecessary()) { // Old gdbs do not announce the PID for programs without pthreads. // Note that successfully preloading the debugging helpers will // automatically load pthreads, so this will be unnecessary. if (m_engine->m_gdbVersion < 70000) m_engine->postCommand("info target", CB(handleInfoTarget)); } m_engine->handleInferiorPrepared(); } else { QByteArray ba = response.data.findChild("msg").data(); QString msg = fromLocalEncoding(ba); // Extend the message a bit in unknown cases. if (!ba.endsWith("File format not recognized")) msg = tr("Starting executable failed:\n") + msg; m_engine->notifyInferiorSetupFailed(msg); } }