(config: ConfigurationArguments, preLoadCmds: string[])
| 386 | } |
| 387 | |
| 388 | export function genDownloadCommands(config: ConfigurationArguments, preLoadCmds: string[]) { |
| 389 | if (Array.isArray(config?.loadFiles)) { |
| 390 | if (config.loadFiles.length === 0) { |
| 391 | return []; |
| 392 | } else { |
| 393 | const ret = [...preLoadCmds]; |
| 394 | for (const f of config.loadFiles) { |
| 395 | const tmp = f.replace(/\\/g, '/'); |
| 396 | ret.push(`file-exec-file "${tmp}"`, 'target-download'); |
| 397 | } |
| 398 | return ret; |
| 399 | } |
| 400 | } |
| 401 | return [...preLoadCmds, 'target-download']; |
| 402 | } |
| 403 | |
| 404 | export class RTTServerHelper { |
| 405 | // Channel numbers previously used on the localhost |
no outgoing calls
no test coverage detected