debugger: first step to re-enable breakpoint location update.

This commit is contained in:
hjk
2010-11-18 12:30:56 +01:00
parent 203c7a2f11
commit bf1f351f29
4 changed files with 45 additions and 22 deletions

View File

@@ -529,9 +529,14 @@ void BreakHandler::setMarkerFileAndLine(BreakpointId id,
{
Iterator it = m_storage.find(id);
QTC_ASSERT(it != m_storage.end(), return);
if (it->markerFileName == fileName && it->markerLineNumber == lineNumber)
return;
it->markerFileName = fileName;
it->markerLineNumber = lineNumber;
it->response.fileName = fileName;
it->response.lineNumber = lineNumber;
updateMarker(id);
scheduleSynchronization();
}
BreakpointState BreakHandler::state(BreakpointId id) const
@@ -569,7 +574,8 @@ static bool isAllowedTransition(BreakpointState from, BreakpointState to)
return to == BreakpointInsertProceeding;
case BreakpointInsertProceeding:
return to == BreakpointInserted
|| to == BreakpointDead;
|| to == BreakpointDead
|| to == BreakpointChangeRequested;
case BreakpointChangeRequested:
return to == BreakpointChangeProceeding;
case BreakpointChangeProceeding: