mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch 'origin/GP-4331_d-millar_fix_for_executable_path_launch_default' into patch
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user