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:
@@ -1165,7 +1165,9 @@ void GdbEngine::handleStopResponse(const GdbMi &data)
|
||||
showMessage("INVALID STOPPED REASON", LogWarning);
|
||||
}
|
||||
|
||||
const FilePath fileName = FilePath::fromString(fullName);
|
||||
const FilePath onDevicePath = FilePath::fromString(fullName).onDevice(
|
||||
runParameters().debugger.command.executable());
|
||||
const FilePath fileName = onDevicePath.localSource().value_or(onDevicePath);
|
||||
|
||||
if (!nr.isEmpty() && frame.isValid()) {
|
||||
// Use opportunity to update the breakpoint marker position.
|
||||
|
||||
Reference in New Issue
Block a user