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

Method findPausedThread

src/gdb.ts:1672–1688  ·  view source on GitHub ↗
(info: MINode)

Source from the content-addressed store, hash-verified

1670 }
1671
1672 protected findPausedThread(info: MINode) {
1673 if (info.outOfBandRecord && info.outOfBandRecord[0] && info.outOfBandRecord[0].output) {
1674 for (const item of info.outOfBandRecord[0].output) {
1675 if (item[0] === 'thread-id') {
1676 this.currentThreadId = parseInt(item[1]);
1677 this.stoppedThreadId = this.currentThreadId;
1678 if (traceThreads) {
1679 this.handleMsg('stdout', `**** Paused Thread: ${this.stoppedThreadId}\n`);
1680 }
1681 return;
1682 }
1683 }
1684 }
1685 if (traceThreads) {
1686 this.handleMsg('stdout', `**** Paused Thread: not found. Using ID ${this.stoppedThreadId}. Not good\n`);
1687 }
1688 }
1689
1690 protected handleBreakpoint(info: MINode) {
1691 this.continuing = false;

Callers 5

handleBreakpointMethod · 0.95
handleWatchpointMethod · 0.95
handleBreakMethod · 0.95
handlePauseMethod · 0.95
stopEventMethod · 0.95

Calls 1

handleMsgMethod · 0.95

Tested by

no test coverage detected