Commit 9b115f4b authored by hjk's avatar hjk
Browse files

debugger: take unusual marker file names into account when toggling breakpoints.

parent 727b8c3c
......@@ -1029,7 +1029,9 @@ bool BreakHandler::BreakpointItem::isLocatedAt
(const QString &fileName, int lineNumber, bool useMarkerPosition) const
{
int line = useMarkerPosition ? response.lineNumber : data.lineNumber;
return lineNumber == line && fileNameMatch(fileName, response.fileName);
return lineNumber == line
&& (fileNameMatch(fileName, response.fileName)
|| fileNameMatch(fileName, markerFileName()));
}
QIcon BreakHandler::BreakpointItem::icon() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment