aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/gdb/gdbengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/gdb/gdbengine.cpp')
-rw-r--r--src/plugins/debugger/gdb/gdbengine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index d0d769f654b..d16e7269836 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -719,7 +719,7 @@ void GdbEngine::runCommand(const DebuggerCommand &command)
QTC_ASSERT(false, return);
}
- if (m_gdbProc.state() != QProcess::Running) {
+ if (!m_gdbProc.isRunning()) {
showMessage(QString("NO GDB PROCESS RUNNING, CMD IGNORED: %1 %2")
.arg(cmd.function).arg(state()));
if (cmd.callback) {
@@ -767,7 +767,7 @@ void GdbEngine::runCommand(const DebuggerCommand &command)
cmd.function = "python theDumper." + cmd.function + "(" + cmd.argsToPython() + ")";
}
- QTC_ASSERT(m_gdbProc.state() == QProcess::Running, return);
+ QTC_ASSERT(m_gdbProc.isRunning(), return);
cmd.postTime = QTime::currentTime().msecsSinceStartOfDay();
m_commandForToken[token] = cmd;
@@ -1663,7 +1663,7 @@ void GdbEngine::handleInferiorShutdown(const DebuggerResponse &response)
// This happens when someone removed the binary behind our back.
// It is not really an error from a user's point of view.
showMessage("NOTE: " + msg);
- } else if (m_gdbProc.state() == QProcess::Running) {
+ } else if (m_gdbProc.isRunning()) {
AsynchronousMessageBox::critical(tr("Failed to Shut Down Application"),
msgInferiorStopFailed(msg));
}