Skip to content

set native thread name for the debugger #13022

Description

@thestinger

On Linux, this can be done with pthread_setname_np. The maximum length for the name is 16 (really 15, since it ends with a zero byte) so it needs to be truncated. The threads will then show their given name in info threads. This makes debugging so much easier.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions