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

Method startGdbForLiveWatch

src/gdb.ts:913–925  ·  view source on GitHub ↗
(liveGdb: LiveWatchMonitor)

Source from the content-addressed store, hash-verified

911 }
912
913 public startGdbForLiveWatch(liveGdb: LiveWatchMonitor): Promise<void> {
914 const mi2 = new MI2(this.miDebugger.application, this.miDebugger.args, true);
915 liveGdb.setupEvents(mi2);
916 const commands = [...this.gdbInitCommands];
917 mi2.debugOutput = this.args.showDevDebugOutput as ADAPTER_DEBUG_MODE;
918 commands.push('interpreter-exec console "set stack-cache off"');
919 commands.push('interpreter-exec console "set remote interrupt-on-connect off"');
920 if (this.serverController?.initCommands) {
921 commands.push(...this.serverController.initCommands());
922 }
923 const ret = mi2.start(this.args.cwd, commands);
924 return ret;
925 }
926
927 private sendContinue(): Promise<void> {
928 return new Promise<void>((resolve) => {

Callers 1

Calls 3

startMethod · 0.95
setupEventsMethod · 0.80
initCommandsMethod · 0.65

Tested by

no test coverage detected