@@ -142,7 +142,7 @@ class GdbCrossConfig:
def _target_ssh_gdbserver_args(self):
ssh_args = []
if self.gdb_cross.target_device.ssh_port:
- ssh_args += ["-p", self.gdb_cross.target_device.ssh_port]
+ ssh_args += self.gdb_cross.target_device.ssh_port
if self.gdb_cross.target_device.extraoptions:
ssh_args.extend(self.gdb_cross.target_device.extraoptions)
if self.gdb_cross.target_device.target:
@@ -404,10 +404,7 @@ class IdeVSCode(IdeBase):
"label": install_task_name,
"type": "shell",
"command": run_install_deploy,
- "args": [
- "--target",
- args.target
- ],
+ "args": ["--target", args.target] + (["--port", args.port] if args.port else []),
"problemMatcher": []
}
]
@@ -515,10 +512,7 @@ class IdeVSCode(IdeBase):
"label": install_task_name,
"type": "shell",
"command": run_install_deploy,
- "args": [
- "--target",
- args.target
- ],
+ "args": ["--target", args.target] + (["--port", args.port] if args.port else []),
"problemMatcher": []
},
{
@@ -55,7 +55,7 @@ class TargetDevice:
self.ssh_sshexec = 'ssh'
if args.ssh_exec:
self.ssh_sshexec = args.ssh_exec
- self.ssh_port = ''
+ self.ssh_port = []
if args.port:
self.ssh_port = ['-p', args.port]
if args.key: