diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 24428b42e3e..6c9f6e6607e 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -2399,18 +2399,6 @@ static QByteArray multiBreakpointCommand(const char *cmdC, const Breakpoints &bp } #endif -bool CdbEngine::stateAcceptsBreakpointChanges() const -{ - switch (state()) { - case InferiorRunOk: - case InferiorStopOk: - return true; - default: - break; - } - return false; -} - bool CdbEngine::acceptsBreakpoint(const BreakpointParameters &bp) const { if (bp.isCppBreakpoint()) { diff --git a/src/plugins/debugger/cdb/cdbengine.h b/src/plugins/debugger/cdb/cdbengine.h index 1c454d6d515..6b9713a4b97 100644 --- a/src/plugins/debugger/cdb/cdbengine.h +++ b/src/plugins/debugger/cdb/cdbengine.h @@ -78,9 +78,7 @@ public: void activateFrame(int index) override; void selectThread(const Thread &thread) override; - bool stateAcceptsBreakpointChanges() const override; bool acceptsBreakpoint(const BreakpointParameters ¶ms) const override; - void insertBreakpoint(const Breakpoint &bp) override; void removeBreakpoint(const Breakpoint &bp) override; void updateBreakpoint(const Breakpoint &bp) override; diff --git a/src/plugins/debugger/debuggerengine.h b/src/plugins/debugger/debuggerengine.h index bc7df160af9..97effe3ab4d 100644 --- a/src/plugins/debugger/debuggerengine.h +++ b/src/plugins/debugger/debuggerengine.h @@ -342,7 +342,6 @@ public: virtual Core::Context languageContext() const { return {}; } QString displayName() const; - virtual bool stateAcceptsBreakpointChanges() const { return true; } virtual bool acceptsBreakpoint(const BreakpointParameters &bp) const = 0; virtual void insertBreakpoint(const Breakpoint &bp) = 0; virtual void removeBreakpoint(const Breakpoint &bp) = 0; diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 8786dbd543f..02697d977a6 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -2349,20 +2349,6 @@ void GdbEngine::handleBreakCondition(const DebuggerResponse &, const Breakpoint updateBreakpoint(bp); // Maybe there's more to do. } -bool GdbEngine::stateAcceptsBreakpointChanges() const -{ - switch (state()) { - case EngineSetupRequested: - case InferiorRunRequested: - case InferiorRunOk: - case InferiorStopRequested: - case InferiorStopOk: - return true; - default: - return false; - } -} - bool GdbEngine::acceptsBreakpoint(const BreakpointParameters &bp) const { if (runParameters().startMode == AttachCore) diff --git a/src/plugins/debugger/gdb/gdbengine.h b/src/plugins/debugger/gdb/gdbengine.h index 91353479bdf..bd280af8cf2 100644 --- a/src/plugins/debugger/gdb/gdbengine.h +++ b/src/plugins/debugger/gdb/gdbengine.h @@ -185,7 +185,6 @@ private: ////////// General Interface ////////// ////////// Inferior Management ////////// // This should be always the last call in a function. - bool stateAcceptsBreakpointChanges() const final; bool acceptsBreakpoint(const BreakpointParameters &bp) const final; void insertBreakpoint(const Breakpoint &bp) final; void removeBreakpoint(const Breakpoint &bp) final; diff --git a/src/plugins/debugger/lldb/lldbengine.cpp b/src/plugins/debugger/lldb/lldbengine.cpp index c6051e045eb..074df297c13 100644 --- a/src/plugins/debugger/lldb/lldbengine.cpp +++ b/src/plugins/debugger/lldb/lldbengine.cpp @@ -482,20 +482,6 @@ void LldbEngine::selectThread(const Thread &thread) runCommand(cmd); } -bool LldbEngine::stateAcceptsBreakpointChanges() const -{ - switch (state()) { - case EngineSetupRequested: - case InferiorRunRequested: - case InferiorRunOk: - case InferiorStopRequested: - case InferiorStopOk: - return true; - default: - return false; - } -} - bool LldbEngine::acceptsBreakpoint(const BreakpointParameters &bp) const { if (runParameters().startMode == AttachCore) diff --git a/src/plugins/debugger/lldb/lldbengine.h b/src/plugins/debugger/lldb/lldbengine.h index e33db0e963a..1d08069e080 100644 --- a/src/plugins/debugger/lldb/lldbengine.h +++ b/src/plugins/debugger/lldb/lldbengine.h @@ -84,7 +84,6 @@ private: void fetchFullBacktrace(); // This should be always the last call in a function. - bool stateAcceptsBreakpointChanges() const override; bool acceptsBreakpoint(const BreakpointParameters &bp) const override; void insertBreakpoint(const Breakpoint &bp) override; void removeBreakpoint(const Breakpoint &bp) override; diff --git a/src/plugins/debugger/uvsc/uvscengine.cpp b/src/plugins/debugger/uvsc/uvscengine.cpp index ca2619f4f0f..09b19572c1f 100644 --- a/src/plugins/debugger/uvsc/uvscengine.cpp +++ b/src/plugins/debugger/uvsc/uvscengine.cpp @@ -350,18 +350,6 @@ void UvscEngine::activateFrame(int index) reloadPeripheralRegisters(); } -bool UvscEngine::stateAcceptsBreakpointChanges() const -{ - switch (state()) { - case InferiorRunOk: - case InferiorStopOk: - return true; - default: - break; - } - return false; -} - bool UvscEngine::acceptsBreakpoint(const BreakpointParameters &bp) const { if (bp.isCppBreakpoint()) { diff --git a/src/plugins/debugger/uvsc/uvscengine.h b/src/plugins/debugger/uvsc/uvscengine.h index af61d8c2353..1050c35bb46 100644 --- a/src/plugins/debugger/uvsc/uvscengine.h +++ b/src/plugins/debugger/uvsc/uvscengine.h @@ -29,8 +29,6 @@ #include -namespace Utils { class FilePath; } - namespace Debugger { namespace Internal { @@ -63,9 +61,7 @@ public: void activateFrame(int index) final; - bool stateAcceptsBreakpointChanges() const final; bool acceptsBreakpoint(const BreakpointParameters ¶ms) const final; - void insertBreakpoint(const Breakpoint &bp) final; void removeBreakpoint(const Breakpoint &bp) final; void updateBreakpoint(const Breakpoint &bp) final;