debugger: move logical ownership of breakhandler from engines to plugin

This commit is contained in:
hjk
2010-11-04 09:54:23 +01:00
parent 05c9ea021e
commit 8e62715130
14 changed files with 179 additions and 268 deletions

View File

@@ -57,6 +57,7 @@ class DebuggerStartParameters;
namespace Internal {
class DebuggerListener;
class BreakHandler;
}
class DEBUGGER_EXPORT DebuggerPlugin : public ExtensionSystem::IPlugin
@@ -87,9 +88,10 @@ public:
const CPlusPlus::Snapshot &cppCodeModelSnapshot() const;
bool isRegisterViewVisible() const;
bool hasSnapsnots() const;
bool hasSnapshots() const;
void openTextEditor(const QString &titlePattern, const QString &contents);
Internal::BreakHandler *breakHandler() const;
public slots:
void clearCppCodeModelSnapshot();
@@ -97,6 +99,7 @@ public slots:
// void runTest(const QString &fileName);
void showMessage(const QString &msg, int channel, int timeout = -1);
void gotoLocation(const QString &fileName, int lineNumber, bool setMarker);
private:
friend class DebuggerEngine;
@@ -104,7 +107,6 @@ private:
friend class DebuggerRunControl;
void resetLocation();
void gotoLocation(const QString &fileName, int lineNumber, bool setMarker);
void readSettings();
void writeSettings() const;