forked from qt-creator/qt-creator
Debugger: Handle manually set catch breakpoint gracefully
Task-number: QTCREATORBUG-10096 Change-Id: Ia9458840247ae1815751e3c58e1f21990af0cc34 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user