forked from qt-creator/qt-creator
QmlObserver: breakpoint list is shared between engines
Reviewed by: Kai Koehne, Andre Poenitz
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user