MCPcopy Create free account
hub / github.com/Marus/cortex-debug / genDownloadCommands

Function genDownloadCommands

src/common.ts:388–402  ·  view source on GitHub ↗
(config: ConfigurationArguments, preLoadCmds: string[])

Source from the content-addressed store, hash-verified

386}
387
388export 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
404export class RTTServerHelper {
405 // Channel numbers previously used on the localhost

Callers 8

launchCommandsMethod · 0.90
launchCommandsMethod · 0.90
launchCommandsMethod · 0.90
launchCommandsMethod · 0.90
launchCommandsMethod · 0.90
launchCommandsMethod · 0.90
launchCommandsMethod · 0.90
launchCommandsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected