mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-0: fix for 'none' vs blank
This commit is contained in:
parent
eaf3f32121
commit
36bdc556f0
3 changed files with 6 additions and 6 deletions
|
@ -85,10 +85,10 @@ public class DbgEngInJvmDebuggerModelFactory implements DebuggerModelFactory {
|
|||
}
|
||||
|
||||
protected void completeCommandLine(List<String> cmd) {
|
||||
if (!remote.equals("none")) {
|
||||
if (!remote.equals("none") && !remote.equals("")) {
|
||||
cmd.addAll(List.of(remote));
|
||||
}
|
||||
if (!transport.equals("none")) {
|
||||
if (!transport.equals("none") && !transport.equals("")) {
|
||||
cmd.addAll(List.of(transport));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,10 +87,10 @@ public class DbgEngGadpDebuggerModelFactory extends AbstractGadpLocalDebuggerMod
|
|||
cmd.addAll(List.of("-H", host));
|
||||
cmd.addAll(List.of("-p", Integer.toString(port)));
|
||||
//cmd.addAll(List.of("-t", transport));
|
||||
if (!remote.equals("none")) {
|
||||
if (!remote.equals("none") && !remote.equals("")) {
|
||||
cmd.addAll(List.of("-r", remote));
|
||||
}
|
||||
if (!transport.equals("none")) {
|
||||
if (!transport.equals("none") && !transport.equals("")) {
|
||||
cmd.addAll(List.of("-t", transport));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue