mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-23 20:59:58 +00:00
GP-2979: Launch GADP agents using same JVM as Ghidra
This commit is contained in:
parent
79c0f3f1de
commit
34aabc7edb
@ -113,8 +113,11 @@ public abstract class AbstractGadpLocalDebuggerModelFactory implements DebuggerM
|
||||
try {
|
||||
ProcessBuilder builder = new ProcessBuilder();
|
||||
List<String> cmd = new ArrayList<>();
|
||||
cmd.add("java");
|
||||
cmd.addAll(List.of("-cp", System.getProperty("java.class.path")));
|
||||
String javaCommand = System.getProperty("java.home") + File.separator + "bin" +
|
||||
File.separator + "java";
|
||||
cmd.add(javaCommand);
|
||||
cmd.add("-cp");
|
||||
cmd.add(System.getProperty("java.class.path"));
|
||||
if (jdwpPort >= 0) {
|
||||
cmd.add("-agentlib:jdwp=server=y,transport=dt_socket,address=" + jdwpPort +
|
||||
",suspend=" + (jdwpSuspend ? "y" : "n"));
|
||||
|
Loading…
Reference in New Issue
Block a user