debugger: fix breakpoint markers in constructors

This commit is contained in:
hjk
2010-03-04 12:30:51 +01:00
parent f5c8389aab
commit 8182e921b6

View File

@@ -2259,6 +2259,12 @@ void GdbEngine::extractDataFromInfoBreak(const QString &output, BreakpointData *
full = re.cap(3); // FIXME: wrong, but prevents recursion
}
}
// The variable full could still contain, say "foo.cpp" when we asked
// for "/full/path/to/foo.cpp". In this case, using the requested
// instead of the acknowledged name makes sense as it will allow setting
// the marker in more cases.
if (data->fileName.endsWith(full))
full = data->fileName;
data->markerLineNumber = data->bpLineNumber.toInt();
data->markerFileName = full;
data->bpFileName = full;