forked from qt-creator/qt-creator
debugger: move watchpoint convenience functions to breakhandler
Change-Id: I7f214ff5fe6d996c4dd14c6ac181a482ad00c94e Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1569,5 +1569,32 @@ QString BreakHandler::BreakpointItem::toToolTip() const
|
||||
return rc;
|
||||
}
|
||||
|
||||
void BreakHandler::setWatchpointAtAddress(quint64 address, unsigned size)
|
||||
{
|
||||
BreakpointParameters data(WatchpointAtAddress);
|
||||
data.address = address;
|
||||
data.size = size;
|
||||
BreakpointModelId id = findWatchpoint(data);
|
||||
if (id) {
|
||||
qDebug() << "WATCHPOINT EXISTS";
|
||||
// removeBreakpoint(index);
|
||||
return;
|
||||
}
|
||||
appendBreakpoint(data);
|
||||
}
|
||||
|
||||
void BreakHandler::setWatchpointAtExpression(const QString &exp)
|
||||
{
|
||||
BreakpointParameters data(WatchpointAtExpression);
|
||||
data.expression = exp;
|
||||
BreakpointModelId id = findWatchpoint(data);
|
||||
if (id) {
|
||||
qDebug() << "WATCHPOINT EXISTS";
|
||||
// removeBreakpoint(index);
|
||||
return;
|
||||
}
|
||||
appendBreakpoint(data);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Debugger
|
||||
|
||||
Reference in New Issue
Block a user