forked from qt-creator/qt-creator
debugger: re-do the 'bbsetup' after sourcing a user script
This commit is contained in:
@@ -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 {
|
||||
showMessageBox(QMessageBox::Warning,
|
||||
tr("Cannot find debugger initialization script"),
|
||||
|
||||
Reference in New Issue
Block a user