Skip to content

Expose task, and scheduler name information to debuggers #10302

Closed

Description

@mstewartgallus

Currently, when debugging my heavily concurrent Rust program all I get is blanks in the name fields. It'd be really nice if my debugger could show the name I set using the task builder API.

This sort of relates to issue #2891 but is a different view on the topic.

CC @jdm

Activity

  1. thestinger commented on Nov 6, 2013

    @thestinger
    Contributor

    Calling the pthread naming functions on every context switch seems like it would do this, but it might add too much overhead to what should be a cheap context switch and it's not portable.

  2. added
    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
    on Sep 19, 2014
  3. thestinger commented on Sep 29, 2014

    @thestinger
    Contributor

    This will be very easy to implement now that there are only going to be native threads. (#17325)

  4. vojtechkral commented on Jan 27, 2015

    @vojtechkral
    Contributor

    @thestinger I had a look as to how this could be implemented and it's actually not so easy, as there is no POSIX-ly standard way to set a thread's name. All the *nixes do this in a bit different way with the most annoying one being OS X where you only can set the name from within the thread and the function is only available since OS X 10.6. It seems Linux and BSDs are okay though.

    Source: this SO thread.

  5. added 4 commits that reference this issue on Jan 27, 2015
    ec4981e
    c155208
    33a3d6d
    7e67eba
  6. added a commit that references this issue on Jan 28, 2015
    90ed244
  7. added a commit that references this issue on Jan 28, 2015
    9ee972c
  8. added a commit that references this issue on Jan 30, 2015
    b70ec4d
  9. added a commit that references this issue on Feb 26, 2023
    be74773
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.)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions