Commit c6106ff8 authored by hjk's avatar hjk

BareMetal: Use new setter based DebuggerRunTool interface

Change-Id: I96ea87f1219c781d3be6e7838575ae5d5cc0b195
Reviewed-by: default avatarDenis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: default avatarAlexander Drozdov <adrozdoff@gmail.com>
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent 07f9f8da
......@@ -106,28 +106,32 @@ void BareMetalDebugSupport::start()
const GdbServerProvider *p = GdbServerProviderManager::findProvider(dev->gdbServerProviderId());
QTC_ASSERT(p, reportFailure(); return);
Debugger::DebuggerStartParameters sp;
#if 0
// Currently baremetal plugin does not provide way to configure deployments steps
// FIXME: Should it?
QString commands;
if (const BuildConfiguration *bc = target->activeBuildConfiguration()) {
if (BuildStepList *bsl = bc->stepList(BareMetalGdbCommandsDeployStep::stepId())) {
foreach (const BareMetalGdbCommandsDeployStep *bs, bsl->allOfType<BareMetalGdbCommandsDeployStep>()) {
if (!sp.commandsAfterConnect.endsWith("\n"))
sp.commandsAfterConnect.append("\n");
sp.commandsAfterConnect.append(bs->gdbCommands());
if (!commands.endsWith("\n"))
commands.append("\n");
commands.append(bs->gdbCommands());
}
}
}
sp.inferior.executable = bin;
sp.inferior.commandLineArguments = rc->arguments();
sp.symbolFile = bin;
sp.startMode = AttachToRemoteServer;
sp.commandsAfterConnect = p->initCommands();
sp.commandsForReset = p->resetCommands();
sp.remoteChannel = p->channel();
sp.useContinueInsteadOfRun = true;
setStartParameters(sp);
setCommandsAfterConnect(commands);
#endif
StandardRunnable inferior;
inferior.executable = bin;
inferior.commandLineArguments = rc->arguments();
setInferior(inferior);
setSymbolFile(bin);
setStartMode(AttachToRemoteServer);
setCommandsAfterConnect(p->initCommands()); // .. and here?
setCommandsForReset(p->resetCommands());
setGdbServerChannel(p->channel());
setUseContinueInsteadOfRun(true);
DebuggerRunTool::start();
}
......
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