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

Method handleThreadCreated

src/gdb.ts:1764–1774  ·  view source on GitHub ↗
(info: { threadId: number, threadGroupId: string })

Source from the content-addressed store, hash-verified

1762 }
1763
1764 protected handleThreadCreated(info: { threadId: number, threadGroupId: string }) {
1765 if (!this.activeThreadIds.has(info.threadId)) {
1766 if (traceThreads) {
1767 this.handleMsg('log', `**** Thread created ${info.threadId}\n`);
1768 }
1769 this.activeThreadIds.add(info.threadId);
1770 this.sendEvent(new ThreadEvent('started', info.threadId));
1771 } else {
1772 this.handleMsg('log', `Thread Error: GDB trying to create thread '${info.threadId}' that already exists`);
1773 }
1774 }
1775
1776 protected handleThreadExited(info: { threadId: number, threadGroupId: string }) {
1777 if (traceThreads) {

Callers 1

threadsRequestMethod · 0.95

Calls 3

handleMsgMethod · 0.95
sendEventMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected