forked from qt-creator/qt-creator
		
	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:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user