Commit 2b1ad2f9 authored by hjk's avatar hjk
Browse files

debugger: re-do the 'bbsetup' after sourcing a user script

parent a4c86028
......@@ -4475,6 +4475,8 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &settingsIdHint)
if (!scriptFileName.isEmpty()) {
if (QFileInfo(scriptFileName).isReadable()) {
postCommand("source " + scriptFileName.toLocal8Bit());
// Re-do the setup, as the "source" might have changed something.
postCommand("bbsetup", ConsoleCommand, CB(handleHasPython));
} else {
tr("Cannot find debugger initialization script"),
Supports Markdown
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