Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
128ed085
Commit
128ed085
authored
Mar 22, 2010
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: try to warn if we have a non-python enabled gdb on Windows.
parent
ff7967cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/gdb/gdbengine.cpp
+6
-0
No files found.
src/plugins/debugger/gdb/gdbengine.cpp
View file @
128ed085
...
...
@@ -3918,6 +3918,7 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
#ifdef Q_OS_WIN
// Set python path. By convention, python is located below gdb executable.
const
QFileInfo
fi
(
location
);
bool
foundPython
=
false
;
if
(
fi
.
isAbsolute
())
{
const
QString
winPythonVersion
=
QLatin1String
(
winPythonVersionC
);
const
QDir
dir
=
fi
.
absoluteDir
();
...
...
@@ -3937,8 +3938,13 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
_
(
"Python path: %1"
).
arg
(
pythonPath
));
m_gdbProc
.
setProcessEnvironment
(
environment
);
}
foundPython
=
true
;
}
}
if
(
!
foundPython
)
{
debugMessage
(
_
(
"UNSUPPORTED GDB %1 DOES NOT HAVE PYTHON."
).
arg
(
location
));
showStatusMessage
(
_
(
"Gdb at %1 does not have python."
).
arg
(
location
));
}
#endif
connect
(
&
m_gdbProc
,
SIGNAL
(
error
(
QProcess
::
ProcessError
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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