Debugger/gdb: Activate "target async" option in GUI.

Change-Id: Ic359d4af409993dfcc45ba95e6ab5e9287ef6d12
Reviewed-on: http://codereview.qt-project.org/5874
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Christian Kandeler
2011-09-30 13:35:31 +02:00
parent 5066736205
commit b2ae4b230d
2 changed files with 4 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ QWidget *GdbOptionsPage::createPage(QWidget *parent)
}
// FIXME: Not fully working on the gdb side yet.
m_ui->checkBoxTargetAsync->hide();
//m_ui->checkBoxTargetAsync->hide();
return w;
}

View File

@@ -32,6 +32,7 @@
#include "remotegdbserveradapter.h"
#include "debuggeractions.h"
#include "debuggerstartparameters.h"
#include "debuggercore.h"
#include "debuggerstringutils.h"
@@ -201,7 +202,8 @@ void RemoteGdbServerAdapter::setupInferior()
// gdb/mi/mi-main.c:1958: internal-error:
// mi_execute_async_cli_command: Assertion `is_running (inferior_ptid)'
// failed.\nA problem internal to GDB has been detected,[...]
m_engine->postCommand("set target-async on", CB(handleSetTargetAsync));
if (debuggerCore()->boolSetting(TargetAsync))
m_engine->postCommand("set target-async on", CB(handleSetTargetAsync));
if (fileName.isEmpty()) {
showMessage(tr("No symbol file given."), StatusBar);