forked from qt-creator/qt-creator
Re-enable "set target-async on" and make failure non-fatal
This commit is contained in:
@@ -164,32 +164,20 @@ void RemoteGdbAdapter::startInferior()
|
|||||||
m_engine->postCommand(_("-exec-arguments ")
|
m_engine->postCommand(_("-exec-arguments ")
|
||||||
+ startParameters().processArgs.join(_(" ")));
|
+ startParameters().processArgs.join(_(" ")));
|
||||||
|
|
||||||
#if 0
|
|
||||||
m_engine->postCommand(_("set target-async on"), CB(handleSetTargetAsync));
|
m_engine->postCommand(_("set target-async on"), CB(handleSetTargetAsync));
|
||||||
#else
|
|
||||||
QFileInfo fi(startParameters().executable);
|
QFileInfo fi(startParameters().executable);
|
||||||
QString fileName = fi.absoluteFilePath();
|
QString fileName = fi.absoluteFilePath();
|
||||||
m_engine->postCommand(_("-file-exec-and-symbols \"%1\"").arg(fileName),
|
m_engine->postCommand(_("-file-exec-and-symbols \"%1\"").arg(fileName),
|
||||||
CB(handleFileExecAndSymbols));
|
CB(handleFileExecAndSymbols));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
void RemoteGdbAdapter::handleSetTargetAsync(const GdbResponse &response)
|
void RemoteGdbAdapter::handleSetTargetAsync(const GdbResponse &response)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(state() == InferiorStarting, qDebug() << state());
|
QTC_ASSERT(state() == InferiorStarting, qDebug() << state());
|
||||||
if (response.resultClass == GdbResultDone) {
|
if (response.resultClass == GdbResultError)
|
||||||
//qq->breakHandler()->setAllPending();
|
qDebug() << "Adapter too old: does not support asynchronous mode.";
|
||||||
QFileInfo fi(startParameters().executable);
|
|
||||||
QString fileName = fi.absoluteFilePath();
|
|
||||||
m_engine->postCommand(_("-file-exec-and-symbols \"%1\"").arg(fileName),
|
|
||||||
CB(handleFileExecAndSymbols));
|
|
||||||
} else {
|
|
||||||
QString msg = tr("Adapter too old: does not support asynchronous mode.");
|
|
||||||
emit inferiorStartFailed(msg);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void RemoteGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
|
void RemoteGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
|
||||||
{
|
{
|
||||||
|
@@ -64,9 +64,7 @@ private:
|
|||||||
Q_SLOT void readUploadStandardError();
|
Q_SLOT void readUploadStandardError();
|
||||||
Q_SLOT void uploadProcError(QProcess::ProcessError error);
|
Q_SLOT void uploadProcError(QProcess::ProcessError error);
|
||||||
|
|
||||||
#if 0
|
|
||||||
void handleSetTargetAsync(const GdbResponse &response);
|
void handleSetTargetAsync(const GdbResponse &response);
|
||||||
#endif
|
|
||||||
void handleFileExecAndSymbols(const GdbResponse &response);
|
void handleFileExecAndSymbols(const GdbResponse &response);
|
||||||
void handleTargetRemote(const GdbResponse &response);
|
void handleTargetRemote(const GdbResponse &response);
|
||||||
void handleKill(const GdbResponse &response);
|
void handleKill(const GdbResponse &response);
|
||||||
|
Reference in New Issue
Block a user