Skip to content

Conversation

jameskeane
Copy link

@jameskeane jameskeane commented Nov 6, 2024

GDB thread-info packet combines the 'Name' and 'State' fields into a type of dictionary response. Even though the internal thread-info and wire protocol include separate and distinct fields, they get combined for some reason in the -thread-info response. You can see this in gdb's remote.c file, where it clearly has these separate fields.

This code parses the fields back out, and makes it so the thread names are displayed properly in vscode.

Before

Screenshot at 2024-11-05 23-12-51

After

Screenshot at 2024-11-05 23-13-41

GDB thread-info packet combines the 'Name' and 'State' fields into a type of dictionary response. Even though the internal thread-info and wire protocol include separate and distinct fields, they get combined for some reason.

This code parses the fields back out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant