aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangtools/clangtidyclazytool.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-07-31 12:30:48 +0200
committerhjk <hjk@qt.io>2018-08-17 12:35:15 +0000
commit3b5ecac238b87615b44b27375cef0b4f1d4637e4 (patch)
tree7ef6ab68b1d92564bfdd7181e4cd6c14130a544c /src/plugins/clangtools/clangtidyclazytool.cpp
parentd6911fd10c0d16740e267147bb829ac0aa1b7413 (diff)
Debugger: Make most views per-engine instead of singletons
This is a step towards properly supporting multiple debugger sessions side-by-side. The combined C++-and-QML engine has been removed, instead a combined setup creates now two individual engines, under a single DebuggerRunTool but mostly independent with no combined state machine. This requires a few more clicks in some cases, but makes it easier to direct e.g. interrupt requests to the interesting engine. Care has been taken to not change the UX of the single debugger session use case if possible. The fat debug button operates as-before in that case, i.e. switches to Interrupt if the single active runconfiguration runs in the debugger etc. Most views are made per-engine, running an engine creates a new Perspective, which is destroyed when the run control dies. The snapshot view remains global and becomes primary source of information on a "current engine" that receives all menu and otherwise global input. There is a new global "Breakpoint Preset" view containing all "static" breakpoint data. When an engine starts up it "claims" breakpoint it believes it can handle, but operates on a copy of the static data. The markers of the static version are suppressed as long as an engine controls a breakpoint (that inclusive all resolved locations), but are re-instatet once the engine quits. The old Breakpoint class that already contained this split per-instance was split into a new Breakpoint and a GlobalBreakpoint class, with a per-engine model for Breakpoints, and a singleton model containing GlobalBreakpoints. There is a new CppDebuggerEngine intermediate level serving as base for C++ (or, rather, "compiled") binary debugging, i.e. {Gdb,Lldb,Cdb}Engine, taking over bits of the current DebuggerEngine base that are not applicable to non-binary debuggers. Change-Id: I9994f4c188379b4aee0c4f379edd4759fbb0bd43 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/clangtools/clangtidyclazytool.cpp')
-rw-r--r--src/plugins/clangtools/clangtidyclazytool.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/clangtools/clangtidyclazytool.cpp b/src/plugins/clangtools/clangtidyclazytool.cpp
index 27d7fe171b..a5f28b9e49 100644
--- a/src/plugins/clangtools/clangtidyclazytool.cpp
+++ b/src/plugins/clangtools/clangtidyclazytool.cpp
@@ -282,12 +282,12 @@ ClangTidyClazyTool::ClangTidyClazyTool()
action->setEnabled(m_startAction->isEnabled());
});
- perspective->addToolbarAction(m_startAction);
- perspective->addToolbarAction(m_stopAction);
- perspective->addToolbarAction(m_goBack);
- perspective->addToolbarAction(m_goNext);
- perspective->addToolbarWidget(m_filterLineEdit);
- perspective->addToolbarWidget(m_applyFixitsButton);
+ perspective->addToolBarAction(m_startAction);
+ perspective->addToolBarAction(m_stopAction);
+ perspective->addToolBarAction(m_goBack);
+ perspective->addToolBarAction(m_goNext);
+ perspective->addToolBarWidget(m_filterLineEdit);
+ perspective->addToolBarWidget(m_applyFixitsButton);
Debugger::registerPerspective(perspective);