Skip to content

Commit f897fdd

Browse files
committed
use details as thread name instead (close #210)
before "name" wasn't very useful and just the name of the program. The target-id which was already used as a fallback provides a better identifier. This change removes name and adds the detail value which is only set with certain debuggers and should improve names.
1 parent 0733d71 commit f897fdd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/backend/mi2/mi2.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,8 @@ export class MI2 extends EventEmitter implements IBackend {
610610
targetId: MINode.valueOf(element, "target-id")
611611
};
612612

613-
const name = MINode.valueOf(element, "name");
614-
if (name) {
615-
ret.name = name;
616-
}
613+
ret.name = MINode.valueOf(element, "details")
614+
|| undefined;
617615

618616
return ret;
619617
});

0 commit comments

Comments
 (0)