aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/breakhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2013-09-19 14:15:58 +0200
committerhjk <[email protected]>2013-09-19 18:00:15 +0200
commitd3d66bb39db599557096a4f3eaabaf1d9a063aa6 (patch)
treef0afc2b4470affa5230afa15672c7593be133fca /src/plugins/debugger/breakhandler.cpp
parenta27402c7dcae77c1d09a5b40740f07f263334a0f (diff)
Debugger: Handle manually set catch breakpoint gracefully
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 2e37685a7db..597c06480a4 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);