Debugger: Use a FilePathAspect for extra dumpers

Change-Id: Ideb779cc5ef0d679667b635efe8c1a2859c6e608
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2023-05-22 14:41:27 +02:00
parent 06365fa39f
commit d685fbccf0
5 changed files with 10 additions and 11 deletions

View File

@@ -228,10 +228,10 @@ void LldbEngine::handleLldbStarted()
if (!commands.isEmpty())
executeCommand(commands);
const QString path = debuggerSettings()->extraDumperFile.value();
if (!path.isEmpty() && QFileInfo(path).isReadable()) {
const FilePath path = debuggerSettings()->extraDumperFile();
if (!path.isEmpty() && path.isReadableFile()) {
DebuggerCommand cmd("addDumperModule");
cmd.arg("path", path);
cmd.arg("path", path.path());
runCommand(cmd);
}