Merge remote-tracking branch 'origin/GP-4331_d-millar_fix_for_executable_path_launch_default' into patch

This commit is contained in:
Ryan Kurtz
2024-02-15 11:27:50 -05:00

View File

@@ -15,8 +15,9 @@
*/
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.util.*;
import java.util.Map.Entry;
@@ -285,8 +286,10 @@ public abstract class AbstractDebuggerProgramLaunchOffer implements DebuggerProg
for (Entry<String, ParameterDescription<?>> entry : params.entrySet()) {
map.put(entry.getKey(), entry.getValue().defaultValue);
}
String almostExecutablePath = program.getExecutablePath();
File f = new File(almostExecutablePath);
map.put(TargetCmdLineLauncher.CMDLINE_ARGS_NAME,
TargetCmdLineLauncher.quoteImagePathIfSpaces(program.getExecutablePath()));
TargetCmdLineLauncher.quoteImagePathIfSpaces(f.getAbsolutePath()));
return map;
}