debugger: make mixed debugging progress if main binary is missing

Change-Id: I92f47982067b57ca3d34a66977c557325d31ba09
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-03-27 08:05:07 +02:00
committed by hjk
parent 72e0f26cbc
commit 6ae91a4a37

View File

@@ -233,9 +233,16 @@ void RemoteGdbServerAdapter::handleFileExecAndSymbols(const GdbResponse &respons
if (response.resultClass == GdbResultDone) {
callTargetRemote();
} else {
QByteArray reason = response.data.findChild("msg").data();
QString msg = tr("Reading debug information failed:\n");
msg += QString::fromLocal8Bit(response.data.findChild("msg").data());
m_engine->notifyInferiorSetupFailed(msg);
msg += QString::fromLocal8Bit(reason);
if (reason.endsWith("No such file or directory.")) {
showMessage(_("INFERIOR STARTUP: BINARY NOT FOUND"));
showMessage(msg, StatusBar);
callTargetRemote(); // Proceed nevertheless.
} else {
m_engine->notifyInferiorSetupFailed(msg);
}
}
}