Commit d601e379 authored by hjk's avatar hjk Committed by hjk

embeddedlinux: let F10/F11 start debugging with break on main

Change-Id: I0c0586a6fd9dfd99c285a5c4d1abdfe2b1947873
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 7d5fc7c6
......@@ -59,7 +59,7 @@ RemoteLinuxRunControlFactory::~RemoteLinuxRunControlFactory()
bool RemoteLinuxRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMode mode) const
{
if (mode != NormalRunMode && mode != DebugRunMode)
if (mode != NormalRunMode && mode != DebugRunMode && mode != DebugRunModeWithBreakOnMain)
return false;
const QString idStr = QString::fromLatin1(runConfiguration->id().name());
......@@ -68,11 +68,12 @@ bool RemoteLinuxRunControlFactory::canRun(RunConfiguration *runConfiguration, Ru
return false;
}
if (mode == NormalRunMode)
return true;
const RemoteLinuxRunConfiguration * const remoteRunConfig
= qobject_cast<RemoteLinuxRunConfiguration *>(runConfiguration);
if (mode == DebugRunMode)
return remoteRunConfig->portsUsedByDebuggers() <= remoteRunConfig->freePorts().count();
return true;
return remoteRunConfig->portsUsedByDebuggers() <= remoteRunConfig->freePorts().count();
}
RunControl *RemoteLinuxRunControlFactory::create(RunConfiguration *runConfig, RunMode mode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment