()
| 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 = ''; |
nothing calls this directly
no test coverage detected