GP-4331: fix for path

This commit is contained in:
d-millar
2024-02-14 20:42:49 +00:00
parent d27222d9b5
commit aa42635d3e

View File

@@ -15,8 +15,9 @@
*/ */
package ghidra.app.plugin.core.debug.service.model.launch; package ghidra.app.plugin.core.debug.service.model.launch;
import static ghidra.async.AsyncUtils.loop; import static ghidra.async.AsyncUtils.*;
import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.*; import java.util.*;
import java.util.Map.Entry; import java.util.Map.Entry;
@@ -285,8 +286,10 @@ public abstract class AbstractDebuggerProgramLaunchOffer implements DebuggerProg
for (Entry<String, ParameterDescription<?>> entry : params.entrySet()) { for (Entry<String, ParameterDescription<?>> entry : params.entrySet()) {
map.put(entry.getKey(), entry.getValue().defaultValue); map.put(entry.getKey(), entry.getValue().defaultValue);
} }
String almostExecutablePath = program.getExecutablePath();
File f = new File(almostExecutablePath);
map.put(TargetCmdLineLauncher.CMDLINE_ARGS_NAME, map.put(TargetCmdLineLauncher.CMDLINE_ARGS_NAME,
TargetCmdLineLauncher.quoteImagePathIfSpaces(program.getExecutablePath())); TargetCmdLineLauncher.quoteImagePathIfSpaces(f.getAbsolutePath()));
return map; return map;
} }