QmlObserver: breakpoint list is shared between engines

Reviewed by:  Kai Koehne, Andre Poenitz
This commit is contained in:
Christiaan Janssen
2010-10-05 11:01:14 +02:00
parent 9dfc5b1414
commit 24912c3f2e
10 changed files with 92 additions and 30 deletions

View File

@@ -64,11 +64,11 @@ public:
QAbstractItemModel *model() { return this; }
BreakpointData *at(int index) const;
int size() const { return m_bp.size(); }
int size() const { return m_bp?m_bp->size():0; }
bool hasPendingBreakpoints() const;
void removeAt(int index); // This also deletes the marker.
void clear(); // This also deletes all the marker.
int indexOf(BreakpointData *data) { return m_bp.indexOf(data); }
int indexOf(BreakpointData *data) { return m_bp?m_bp->indexOf(data):-1; }
// Find a breakpoint matching approximately the data in needle.
BreakpointData *findSimilarBreakpoint(const BreakpointData *needle) const;
BreakpointData *findBreakpointByNumber(int bpNumber) const;
@@ -76,6 +76,7 @@ public:
bool watchPointAt(quint64 address) const;
void updateMarkers();
bool isActive() const;
bool isMasterList() const;
Breakpoints insertedBreakpoints() const;
void takeInsertedBreakPoint(BreakpointData *);
@@ -121,6 +122,8 @@ private:
void removeBreakpointHelper(int index);
void append(BreakpointData *data);
void initMasterList();
const QIcon m_breakpointIcon;
const QIcon m_disabledBreakpointIcon;
const QIcon m_pendingBreakPointIcon;
@@ -128,12 +131,14 @@ private:
const QIcon m_watchpointIcon;
Debugger::DebuggerEngine *m_engine; // Not owned.
Breakpoints m_bp;
Breakpoints *m_bp;
Breakpoints m_inserted; // Lately inserted breakpoints.
Breakpoints m_removed; // Lately removed breakpoints.
Breakpoints m_enabled; // Lately enabled breakpoints.
Breakpoints m_disabled; // Lately disabled breakpoints.
bool m_masterList;
// Hack for BreakWindow::findSimilarBreakpoint
mutable BreakpointData *m_lastFound;
mutable bool m_lastFoundQueried;