forked from qt-creator/qt-creator
debugger: make startGdb response handling asyncronous
This allows adapters to take all responses from the startup commands into account. Change-Id: I295cb211a4b69cfb8c59b34030aaee8120ffe98e Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -386,13 +386,19 @@ void CodaGdbAdapter::startGdb()
|
||||
{
|
||||
QStringList gdbArgs;
|
||||
gdbArgs.append(_("--nx")); // Do not read .gdbinit file
|
||||
if (!m_engine->startGdb(gdbArgs)) {
|
||||
cleanup();
|
||||
return;
|
||||
}
|
||||
m_engine->startGdb(gdbArgs);
|
||||
}
|
||||
|
||||
void CodaGdbAdapter::handleGdbStartDone()
|
||||
{
|
||||
m_engine->handleAdapterStarted();
|
||||
}
|
||||
|
||||
void CodaGdbAdapter::handleGdbStartFailed()
|
||||
{
|
||||
cleanup();
|
||||
}
|
||||
|
||||
void CodaGdbAdapter::codaDeviceError(const QString &errorString)
|
||||
{
|
||||
logMessage(errorString);
|
||||
|
||||
Reference in New Issue
Block a user