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

This commit is contained in:
hjk
2011-05-09 09:17:11 +02:00
parent a4c8602821
commit 2b1ad2f9a3

View File

@@ -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"),