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

@@ -332,7 +332,7 @@ void LldbEngine::runEngine()
showStatusMessage(Tr::tr("Running requested..."), 5000);
DebuggerCommand cmd("runEngine");
if (rp.startMode == AttachToCore)
cmd.arg("coreFile", rp.coreFile);
cmd.arg("coreFile", rp.coreFile.path());
runCommand(cmd);
}
@@ -413,7 +413,7 @@ void LldbEngine::executeRunToLine(const ContextData &data)
{
notifyInferiorRunRequested();
DebuggerCommand cmd("executeRunToLocation");
cmd.arg("file", data.fileName);
cmd.arg("file", data.fileName.path());
cmd.arg("line", data.lineNumber);
cmd.arg("address", data.address);
runCommand(cmd);
@@ -430,7 +430,7 @@ void LldbEngine::executeRunToFunction(const QString &functionName)
void LldbEngine::executeJumpToLine(const ContextData &data)
{
DebuggerCommand cmd("executeJumpToLocation");
cmd.arg("file", data.fileName);
cmd.arg("file", data.fileName.path());
cmd.arg("line", data.lineNumber);
cmd.arg("address", data.address);
runCommand(cmd);