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

Method ctiStopResume

src/openocd.ts:480–493  ·  view source on GitHub ↗
(action: CTIAction)

Source from the content-addressed store, hash-verified

478 }
479
480 public ctiStopResume?(action: CTIAction): void {
481 let commands = [];
482 if (action === CTIAction.init) {
483 this.tclCommand('tcl_notifications on');
484 commands = this.args.ctiOpenOCDConfig?.enabled ? this.args.ctiOpenOCDConfig?.initCommands : [];
485 } else if (action === CTIAction.pause) {
486 commands = this.args.ctiOpenOCDConfig?.pauseCommands;
487 } else {
488 commands = this.args.ctiOpenOCDConfig?.resumeCommands;
489 }
490 for (const p of commands || []) {
491 this.tclCommand(p);
492 }
493 }
494}
495
496interface TclCommandQueue {

Callers 1

Calls 1

tclCommandMethod · 0.95

Tested by

no test coverage detected