We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d895ec0 commit 0733d71Copy full SHA for 0733d71
src/mibase.ts
@@ -274,14 +274,7 @@ export class MI2DebugSession extends DebugSession {
274
threads: []
275
};
276
for (const thread of threads) {
277
- let threadName = thread.name;
278
- // TODO: Thread names are undefined on LLDB
279
- if (threadName === undefined) {
280
- threadName = thread.targetId;
281
- }
282
283
- threadName = "<unnamed>";
284
+ let threadName = thread.name || thread.targetId || "<unnamed>";
285
response.body.threads.push(new Thread(thread.id, thread.id + ":" + threadName));
286
}
287
this.sendResponse(response);
0 commit comments