forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/13.0' into qds/dev
Change-Id: I524162811ad42e406d7b8e5f38e7043e776005e1
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include <projectexplorer/runcontrol.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/environment.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
#include <utils/processinterface.h>
|
||||
@@ -328,6 +329,16 @@ void LldbEngine::handleLldbStarted()
|
||||
runEngine();
|
||||
};
|
||||
runCommand(cmd3);
|
||||
|
||||
// Execute post attach commands
|
||||
QStringList commands = settings().gdbPostAttachCommands().split('\n');
|
||||
commands = Utils::filtered(commands, [](const QString line) {
|
||||
const QString trimmed = line.trimmed();
|
||||
return !trimmed.isEmpty() && !trimmed.startsWith('#');
|
||||
});
|
||||
for (const QString &cmd : commands) {
|
||||
executeDebuggerCommand(cmd);
|
||||
}
|
||||
} else {
|
||||
notifyEngineSetupFailed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user