summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/breakhandler.cpp
diff options
context:
space:
mode:
authorhjk <qthjk@ovi.com>2012-06-03 21:59:21 +0200
committerhjk <qthjk@ovi.com>2012-06-04 00:14:41 +0200
commit48fcfe0b8dc6a358b777f38284ac7617a20c9f9a (patch)
tree622c375608879374a138b30b503c48de6be71ec9 /src/plugins/debugger/breakhandler.cpp
parent0394699a4cb31a343c1cc2fa87990389ce07da25 (diff)
downloadqt-creator-48fcfe0b8dc6a358b777f38284ac7617a20c9f9a.tar.gz
debugger: move watchpoint convenience functions to breakhandler
Change-Id: I7f214ff5fe6d996c4dd14c6ac181a482ad00c94e Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r--src/plugins/debugger/breakhandler.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index 390b44dc03..97c78dad9b 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -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