forked from qt-creator/qt-creator
debugger: refactor watch point lookup
In preparation of bitfield watch points.
This commit is contained in:
@@ -654,7 +654,15 @@ void WatchWindow::setModelData
|
||||
|
||||
void WatchWindow::setWatchpoint(quint64 address)
|
||||
{
|
||||
breakHandler()->setWatchpointByAddress(address);
|
||||
BreakpointParameters data(Watchpoint);
|
||||
data.address = address;
|
||||
BreakpointId id = breakHandler()->findWatchpoint(data);
|
||||
if (id) {
|
||||
qDebug() << "WATCHPOINT EXISTS";
|
||||
// removeBreakpoint(index);
|
||||
return;
|
||||
}
|
||||
breakHandler()->appendBreakpoint(data);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user