forked from qt-creator/qt-creator
Docker: Add Filepath::localSource()
FilePath::localSource can return a filepath that represents a local version of a remote file. It is used to let the debugger select the local version of a file when debugging a remote target. Change-Id: Ieb934ef0d454e8ff55e71df41dca825974d85da7 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -74,7 +74,8 @@ StackFrame StackFrame::parseFrame(const GdbMi &frameMi, const DebuggerRunParamet
|
||||
frame.function = frameMi["function"].data();
|
||||
frame.module = frameMi["module"].data();
|
||||
const FilePath debugger = rp.debugger.command.executable();
|
||||
frame.file = FilePath::fromString(frameMi["file"].data()).onDevice(debugger);
|
||||
const FilePath onDevicePath = FilePath::fromString(frameMi["file"].data()).onDevice(debugger);
|
||||
frame.file = onDevicePath.localSource().value_or(onDevicePath);
|
||||
frame.line = frameMi["line"].toInt();
|
||||
frame.address = frameMi["address"].toAddress();
|
||||
frame.context = frameMi["context"].data();
|
||||
|
||||
Reference in New Issue
Block a user