Debugger: map stack frame paths to the device of the debugger

Change-Id: If20617faf63a6b934455267f5e9512e5c555e144
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2021-10-26 12:35:07 +02:00
committed by Christian Stenger
parent 673e90b9de
commit 6cc6e854a6

View File

@@ -95,7 +95,8 @@ StackFrame StackFrame::parseFrame(const GdbMi &frameMi, const DebuggerRunParamet
frame.level = frameMi["level"].data();
frame.function = frameMi["function"].data();
frame.module = frameMi["module"].data();
frame.file = FilePath::fromString(frameMi["file"].data());
const FilePath debugger = rp.debugger.command.executable();
frame.file = FilePath::fromString(frameMi["file"].data()).onDevice(debugger);
frame.line = frameMi["line"].toInt();
frame.address = frameMi["address"].toAddress();
frame.context = frameMi["context"].data();