forked from qt-creator/qt-creator
Fixed breakpoints for CDB.
Set/modify breakpoints using the new takeXX() APIs of the breakhandler. Add API for inserted breakpoints (as a 2-step process for pending breakpoints). Format breakpoint tooltip properly with tr() and more esthetically pleasing. Get rid of the old scheme of retrieving and matching the breakpoints from the debugger engine, use ids.
This commit is contained in:
@@ -123,7 +123,7 @@ public:
|
||||
BreakpointData *at(int index) const { return index < size() ? m_bp.at(index) : 0; }
|
||||
int size() const { return m_bp.size(); }
|
||||
bool hasPendingBreakpoints() const;
|
||||
void append(BreakpointData *data) { m_bp.append(data); }
|
||||
void append(BreakpointData *data);
|
||||
void removeAt(int index); // also deletes the marker
|
||||
void clear(); // also deletes all the marker
|
||||
int indexOf(BreakpointData *data) { return m_bp.indexOf(data); }
|
||||
@@ -132,6 +132,8 @@ public:
|
||||
int findBreakpoint(int bpNumber); // returns index
|
||||
void updateMarkers();
|
||||
|
||||
QList<BreakpointData *> insertedBreakpoints() const;
|
||||
void takeInsertedBreakPoint(BreakpointData *);
|
||||
QList<BreakpointData *> takeRemovedBreakpoints(); // owned
|
||||
QList<BreakpointData *> takeEnabledBreakpoints(); // not owned
|
||||
QList<BreakpointData *> takeDisabledBreakpoints(); // not owned
|
||||
@@ -171,6 +173,7 @@ private:
|
||||
void removeBreakpointHelper(int index);
|
||||
|
||||
QList<BreakpointData *> m_bp;
|
||||
QList<BreakpointData *> m_inserted; // lately inserted breakpoints
|
||||
QList<BreakpointData *> m_removed; // lately removed breakpoints
|
||||
QList<BreakpointData *> m_enabled; // lately enabled breakpoints
|
||||
QList<BreakpointData *> m_disabled; // lately disabled breakpoints
|
||||
|
||||
Reference in New Issue
Block a user