Changeset View
Changeset View
Standalone View
Standalone View
debuggers/common/mibreakpointcontroller.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | |||||
59 | * Handles signals from the editor that relate to breakpoints and the execution | 59 | * Handles signals from the editor that relate to breakpoints and the execution | ||
60 | * point of the debugger. | 60 | * point of the debugger. | ||
61 | * We may change, add or remove breakpoints in this class. | 61 | * We may change, add or remove breakpoints in this class. | ||
62 | */ | 62 | */ | ||
63 | class MIBreakpointController : public KDevelop::IBreakpointController | 63 | class MIBreakpointController : public KDevelop::IBreakpointController | ||
64 | { | 64 | { | ||
65 | Q_OBJECT | 65 | Q_OBJECT | ||
66 | public: | 66 | public: | ||
67 | MIBreakpointController( MIDebugSession* parent); | 67 | MIBreakpointController(MIDebugSession* parent); | ||
68 | 68 | | |||
69 | using IBreakpointController::breakpointModel; | 69 | using IBreakpointController::breakpointModel; | ||
70 | 70 | | |||
71 | /** | 71 | /** | ||
72 | * Controls whether when duplicate breakpoints are received via async notification from GDB, | 72 | * Controls whether when duplicate breakpoints are received via async notification from GDB, | ||
73 | * one of the duplicates will be deleted. | 73 | * one of the duplicates will be deleted. | ||
74 | */ | 74 | */ | ||
75 | void setDeleteDuplicateBreakpoints(bool enable); | 75 | void setDeleteDuplicateBreakpoints(bool enable); | ||
Show All 18 Lines | 92 | private: | |||
94 | 94 | | |||
95 | int breakpointRow(const BreakpointDataPtr& breakpoint); | 95 | int breakpointRow(const BreakpointDataPtr& breakpoint); | ||
96 | void createBreakpoint(int row); | 96 | void createBreakpoint(int row); | ||
97 | void sendUpdates(int row); | 97 | void sendUpdates(int row); | ||
98 | void recalculateState(int row); | 98 | void recalculateState(int row); | ||
99 | 99 | | |||
100 | void sendMaybe(KDevelop::Breakpoint *breakpoint) override; | 100 | void sendMaybe(KDevelop::Breakpoint *breakpoint) override; | ||
101 | 101 | | |||
102 | // TODO: what's this | | |||
103 | void createFromDebugger(const MI::Value& miBkpt); | 102 | void createFromDebugger(const MI::Value& miBkpt); | ||
104 | void updateFromDebugger(int row, const MI::Value& miBkpt, | 103 | void updateFromDebugger(int row, const MI::Value& miBkpt, | ||
105 | KDevelop::BreakpointModel::ColumnFlags lockedColumns = 0); | 104 | KDevelop::BreakpointModel::ColumnFlags lockedColumns = 0); | ||
106 | 105 | | |||
107 | int rowFromDebuggerId(int gdbId) const; | 106 | int rowFromDebuggerId(int gdbId) const; | ||
108 | 107 | | |||
109 | struct Handler; | 108 | struct Handler; | ||
110 | struct InsertedHandler; | 109 | struct InsertedHandler; | ||
Show All 13 Lines |