diff --git a/debuggers/gdb/debugsession.h b/debuggers/gdb/debugsession.h --- a/debuggers/gdb/debugsession.h +++ b/debuggers/gdb/debugsession.h @@ -80,7 +80,7 @@ KDevelop::IVariableController* variableController() const override; KDevelop::IFrameStackModel* frameStackModel() const override; - bool isCrashed() const; + bool hasCrashed() const; using IDebugSession::event; Q_SIGNALS: @@ -290,16 +290,15 @@ /**When program stops and all commands from queue are executed and this variable is true, program state shown to the user is updated.*/ bool state_reload_needed; - - QTime commandExecutionTime; - /**True if program has stopped and all stuff like breakpoints is being updated.*/ bool stateReloadInProgress_; + /**True if process crashed*/ + bool m_hasCrashed; + + QTime commandExecutionTime; ///Exit code of the last inferior(in format: exit normally, with code "number" e.t.c) QString m_inferiorExitCode; - - bool m_isCrashed; }; } diff --git a/debuggers/gdb/debugsession.cpp b/debuggers/gdb/debugsession.cpp --- a/debuggers/gdb/debugsession.cpp +++ b/debuggers/gdb/debugsession.cpp @@ -77,7 +77,7 @@ , state_(s_dbgNotStarted | s_appNotStarted) , state_reload_needed(false) , stateReloadInProgress_(false) - , m_isCrashed(false) + , m_hasCrashed(false) { configure(); @@ -733,7 +733,7 @@ // that'll end the program. programFinished(i18n("Program received signal %1 (%2)", name, user_name)); - m_isCrashed = true; + m_hasCrashed = true; } } @@ -773,9 +773,9 @@ setStateOff(s_automaticContinue); } -bool DebugSession::isCrashed() const +bool DebugSession::hasCrashed() const { - return m_isCrashed; + return m_hasCrashed; } void DebugSession::processNotification(const GDBMI::AsyncRecord & async) diff --git a/debuggers/gdb/gdbframestackmodel.cpp b/debuggers/gdb/gdbframestackmodel.cpp --- a/debuggers/gdb/gdbframestackmodel.cpp +++ b/debuggers/gdb/gdbframestackmodel.cpp @@ -84,7 +84,7 @@ setCurrentThread(currentThreadId); - if (session()->isCrashed()) { + if (session()->hasCrashed()) { setCrashedThreadIndex(currentThreadId); } }