Skip to content
Snippets Groups Projects
Commit 42eac3c9 authored by hjk's avatar hjk
Browse files

debugger: handle symlinked source files a bit better

parent 4cba453a
No related branches found
No related tags found
No related merge requests found
...@@ -163,6 +163,11 @@ void GdbEngine::handleStackFramePython(const GdbResponse &response) ...@@ -163,6 +163,11 @@ void GdbEngine::handleStackFramePython(const GdbResponse &response)
bp->bpFileName = child.findChild("file").data(); bp->bpFileName = child.findChild("file").data();
bp->markerLineNumber = bp->bpLineNumber.toInt(); bp->markerLineNumber = bp->bpLineNumber.toInt();
bp->markerFileName = bp->bpFileName; bp->markerFileName = bp->bpFileName;
// Happens with moved/symlinked sources.
if (!bp->fileName.isEmpty()
&& !bp->bpFileName.isEmpty()
&& bp->fileName != bp->bpFileName)
bp->markerFileName = bp->fileName;
} else { } else {
QTC_ASSERT(false, qDebug() << child.toString()); QTC_ASSERT(false, qDebug() << child.toString());
//bp->bpNumber = "<unavailable>"; //bp->bpNumber = "<unavailable>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment