From d3d66bb39db599557096a4f3eaabaf1d9a063aa6 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 19 Sep 2013 14:15:58 +0200 Subject: Debugger: Handle manually set catch breakpoint gracefully Task-number: QTCREATORBUG-10096 Change-Id: Ia9458840247ae1815751e3c58e1f21990af0cc34 Reviewed-by: hjk --- src/plugins/debugger/breakhandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/debugger/breakhandler.cpp') 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); -- cgit v1.2.1