Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
2b1ad2f9
Commit
2b1ad2f9
authored
May 09, 2011
by
hjk
Browse files
debugger: re-do the 'bbsetup' after sourcing a user script
parent
a4c86028
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
2b1ad2f9
...
...
@@ -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"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment