summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/breakhandler.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-09-19 14:15:58 +0200
committerhjk <hjk121@nokiamail.com>2013-09-19 18:00:15 +0200
commitd3d66bb39db599557096a4f3eaabaf1d9a063aa6 (patch)
treef0afc2b4470affa5230afa15672c7593be133fca /src/plugins/debugger/breakhandler.cpp
parenta27402c7dcae77c1d09a5b40740f07f263334a0f (diff)
downloadqt-creator-d3d66bb39db599557096a4f3eaabaf1d9a063aa6.tar.gz
Debugger: Handle manually set catch breakpoint gracefully
Task-number: QTCREATORBUG-10096 Change-Id: Ia9458840247ae1815751e3c58e1f21990af0cc34 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r--src/plugins/debugger/breakhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index 2e37685a7d..597c06480a 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -986,6 +986,8 @@ void BreakHandler::notifyBreakpointReleased(BreakpointModelId id)
|| it->data.type == WatchpointAtExpression
|| it->data.type == BreakpointByAddress)
it->data.enabled = false;
+ else
+ it->data.address = 0;
layoutChanged();
}
@@ -1073,7 +1075,7 @@ void BreakHandler::handleAlienBreakpoint(const BreakpointResponse &response, Deb
else
setResponse(id, response);
} else {
- BreakpointModelId id(++currentId);
+ id = BreakpointModelId(++currentId);
const int row = m_storage.size();
beginInsertRows(QModelIndex(), row, row);