forked from qt-creator/qt-creator
BareMetal: add variable support for device gdb commands
Change-Id: I192ccf4dc7a2599ead1fcdd11a4d59f0e22e3e1d Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -4460,7 +4460,8 @@ void GdbEngine::handleInferiorPrepared()
|
||||
QTC_ASSERT(state() == InferiorSetupRequested, qDebug() << state());
|
||||
|
||||
if (!sp.commandsAfterConnect.isEmpty()) {
|
||||
foreach (QByteArray command, sp.commandsAfterConnect.split('\n')) {
|
||||
QByteArray substitutedCommands = Core::VariableManager::expandedString(QString::fromLatin1(sp.commandsAfterConnect)).toLatin1();
|
||||
foreach (QByteArray command, substitutedCommands.split('\n')) {
|
||||
postCommand(command);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user