Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse 'Name' from gdb thread-info response #1482

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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