debugger: make <F10> work to 'break on main' for remote linux

Change-Id: I6893ab74d8c35a92a9493fc5601ef52f4c66bf01
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
hjk
2012-06-27 14:43:27 +02:00
parent ead0a7e706
commit 4816cb3299

View File

@@ -93,8 +93,9 @@ RunControl *RemoteLinuxRunControlFactory::create(RunConfiguration *runConfig, Ru
if (mode == ProjectExplorer::NormalRunMode) if (mode == ProjectExplorer::NormalRunMode)
return new RemoteLinuxRunControl(rc); return new RemoteLinuxRunControl(rc);
const DebuggerStartParameters params DebuggerStartParameters params = AbstractRemoteLinuxDebugSupport::startParameters(rc);
= AbstractRemoteLinuxDebugSupport::startParameters(rc); if (mode == ProjectExplorer::DebugRunModeWithBreakOnMain)
params.breakOnMain = true;
DebuggerRunControl * const runControl = DebuggerPlugin::createDebugger(params, rc); DebuggerRunControl * const runControl = DebuggerPlugin::createDebugger(params, rc);
if (!runControl) if (!runControl)
return 0; return 0;