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

Method serverLaunchCompleted

src/openocd.ts:280–299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278 }
279
280 public serverLaunchCompleted(): void {
281 if (this.args.swoConfig.enabled) {
282 const source = this.args.swoConfig.source;
283 if ((source === 'probe') || (source === 'socket') || (source === 'file')) {
284 const swoPortNm = createPortName(this.args.targetProcessor, 'swoPort');
285 this.emit('event', new SWOConfigureEvent({
286 type: 'socket',
287 args: this.args,
288 port: this.ports[swoPortNm].toString(10)
289 }));
290 } else if (source === 'serial') {
291 this.emit('event', new SWOConfigureEvent({
292 type: 'serial',
293 args: this.args,
294 device: this.args.swoConfig.swoPath,
295 baudRate: this.args.swoConfig.swoFrequency
296 }));
297 }
298 }
299 }
300
301 private session: GDBDebugSession;
302 private MI2Leftover: string = '';

Callers

nothing calls this directly

Calls 2

createPortNameFunction · 0.90
toStringMethod · 0.80

Tested by

no test coverage detected