debugger: allow state transition EngineShutdownRequested -> EngineShutdownFailed

This commit is contained in:
hjk
2010-09-07 13:22:12 +02:00
parent dfe15b5310
commit a364b93577
2 changed files with 13 additions and 10 deletions

View File

@@ -169,17 +169,20 @@ void RemoteGdbServerAdapter::setupInferior()
QFileInfo fi(startParameters().executable);
fileName = fi.absoluteFilePath();
}
m_engine->postCommand("set architecture "
+ startParameters().remoteArchitecture.toLatin1());
m_engine->postCommand("set sysroot "
+ startParameters().sysRoot.toLocal8Bit());
m_engine->postCommand("set solib-search-path "
+ QFileInfo(startParameters().dumperLibrary).path().toLocal8Bit());
const QByteArray sysRoot = startParameters().sysRoot.toLocal8Bit();
const QByteArray remoteArch = startParameters().remoteArchitecture.toLatin1();
const QByteArray solibPath =
QFileInfo(startParameters().dumperLibrary).path().toLocal8Bit();
const QString args = startParameters().processArgs.join(_(" "));
if (!startParameters().processArgs.isEmpty()) {
QString args = startParameters().processArgs.join(_(" "));
if (!remoteArch.isEmpty())
m_engine->postCommand("set architecture " + remoteArch);
if (!sysRoot.isEmpty())
m_engine->postCommand("set sysroot " + sysRoot);
if (!solibPath.isEmpty())
m_engine->postCommand("set solib-search-path " + solibPath);
if (!args.isEmpty())
m_engine->postCommand("-exec-arguments " + args.toLocal8Bit());
}
m_engine->postCommand("set target-async on", CB(handleSetTargetAsync));