From 6cc6e854a61a3016ebf3f6c3cacd6fa188bfa31d Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 26 Oct 2021 12:35:07 +0200 Subject: [PATCH] Debugger: map stack frame paths to the device of the debugger Change-Id: If20617faf63a6b934455267f5e9512e5c555e144 Reviewed-by: hjk --- src/plugins/debugger/stackframe.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/stackframe.cpp b/src/plugins/debugger/stackframe.cpp index 9787b7c7c4c..d223d686da3 100644 --- a/src/plugins/debugger/stackframe.cpp +++ b/src/plugins/debugger/stackframe.cpp @@ -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();