forked from qt-creator/qt-creator
debugger: allow breakpoint removal also at the original position, not the "acknolegdged" one
Task-number: QTCREATORBUG-2264
This commit is contained in:
@@ -304,19 +304,11 @@ QString BreakpointData::toString() const
|
||||
return rc;
|
||||
}
|
||||
|
||||
bool BreakpointData::isLocatedAt(const QString &fileName_, int lineNumber_) const
|
||||
bool BreakpointData::isLocatedAt(const QString &fileName_, int lineNumber_,
|
||||
bool useMarkerPosition) const
|
||||
{
|
||||
/*
|
||||
if (lineNumber != QString::number(lineNumber_))
|
||||
return false;
|
||||
if (fileName == fileName_)
|
||||
return true;
|
||||
if (fileName_.endsWith(fileName))
|
||||
return true;
|
||||
return false;
|
||||
*/
|
||||
return lineNumber_ == m_markerLineNumber
|
||||
&& fileNameMatch(fileName_, m_markerFileName);
|
||||
int line = useMarkerPosition ? m_markerLineNumber : lineNumber.toInt();
|
||||
return lineNumber_ == line && fileNameMatch(fileName_, m_markerFileName);
|
||||
}
|
||||
|
||||
bool BreakpointData::isSimilarTo(const BreakpointData *needle) const
|
||||
|
||||
Reference in New Issue
Block a user