Changeset View
Changeset View
Standalone View
Standalone View
debuggers/lldb/debuggerplugin.h
Show All 28 Lines | |||||
29 | #include "widgets/debuggerconsoleview.h" | 29 | #include "widgets/debuggerconsoleview.h" | ||
30 | #include "widgets/disassemblewidget.h" | 30 | #include "widgets/disassemblewidget.h" | ||
31 | 31 | | |||
32 | namespace KDevMI { namespace LLDB { | 32 | namespace KDevMI { namespace LLDB { | ||
33 | 33 | | |||
34 | class NonInterruptDebuggerConsoleView : public DebuggerConsoleView | 34 | class NonInterruptDebuggerConsoleView : public DebuggerConsoleView | ||
35 | { | 35 | { | ||
36 | public: | 36 | public: | ||
37 | NonInterruptDebuggerConsoleView(MIDebuggerPlugin *plugin, QWidget *parent = nullptr) | 37 | explicit NonInterruptDebuggerConsoleView(MIDebuggerPlugin *plugin, QWidget *parent = nullptr) | ||
38 | : DebuggerConsoleView(plugin, parent) | 38 | : DebuggerConsoleView(plugin, parent) | ||
39 | { | 39 | { | ||
40 | setShowInterrupt(false); | 40 | setShowInterrupt(false); | ||
41 | setReplacePrompt("(lldb)"); | 41 | setReplacePrompt("(lldb)"); | ||
42 | } | 42 | } | ||
43 | }; | 43 | }; | ||
44 | 44 | | |||
45 | class LldbDebuggerPlugin : public MIDebuggerPlugin | 45 | class LldbDebuggerPlugin : public MIDebuggerPlugin | ||
46 | { | 46 | { | ||
47 | Q_OBJECT | 47 | Q_OBJECT | ||
48 | 48 | | |||
49 | public: | 49 | public: | ||
50 | friend class KDevMI::LLDB::DebugSession; | 50 | friend class KDevMI::LLDB::DebugSession; | ||
51 | 51 | | |||
52 | LldbDebuggerPlugin(QObject *parent, const QVariantList & = QVariantList()); | 52 | explicit LldbDebuggerPlugin(QObject *parent, const QVariantList & = QVariantList()); | ||
53 | ~LldbDebuggerPlugin() override; | 53 | ~LldbDebuggerPlugin() override; | ||
54 | 54 | | |||
55 | DebugSession *createSession() override; | 55 | DebugSession *createSession() override; | ||
56 | void unloadToolviews() override; | 56 | void unloadToolviews() override; | ||
57 | void setupToolviews() override; | 57 | void setupToolviews() override; | ||
58 | 58 | | |||
59 | private: | 59 | private: | ||
60 | DebuggerToolFactory<NonInterruptDebuggerConsoleView> *m_consoleFactory; | 60 | DebuggerToolFactory<NonInterruptDebuggerConsoleView> *m_consoleFactory; | ||
61 | DebuggerToolFactory<DisassembleWidget> *m_disassembleFactory; | 61 | DebuggerToolFactory<DisassembleWidget> *m_disassembleFactory; | ||
62 | }; | 62 | }; | ||
63 | 63 | | |||
64 | } // end of namespace LLDB | 64 | } // end of namespace LLDB | ||
65 | } // end of namespace KDevMI | 65 | } // end of namespace KDevMI | ||
66 | 66 | | |||
67 | #endif // LLDB_DEBUGGERPLUGIN_H | 67 | #endif // LLDB_DEBUGGERPLUGIN_H |