Debugger: Remove DebuggerCommand::arg(FilePath)

It's better when the user code has to be explicit in what
format and/or which parts of the FilePath is needed.

Change-Id: I9d70e073f853a1bbc47c8482ebe77d7c4612b4b7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
hjk
2022-11-17 14:03:43 +01:00
parent c5296c0bf6
commit e0b856f0b0
5 changed files with 6 additions and 12 deletions

View File

@@ -4369,8 +4369,8 @@ void GdbEngine::setupInferior()
// postCommand("set architecture " + remoteArch);
if (!rp.solibSearchPath.isEmpty()) {
DebuggerCommand cmd("appendSolibSearchPath");
for (const FilePath &path : rp.solibSearchPath)
cmd.arg("path", path);
for (const FilePath &filePath : rp.solibSearchPath)
cmd.arg("path", filePath.path());
cmd.arg("separator", HostOsInfo::pathListSeparator());
runCommand(cmd);
}