about summary refs log tree commit diff
path: root/src/test/debuginfo/thread-names.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-51/+0
2022-06-04Update src/test/debuginfo/thread-names.rsWesley Wiser-0/+11
Co-authored-by: Chris Denton <ChrisDenton@users.noreply.github.com>
2022-05-27Call the OS function to set the main thread's name on program initWesley Wiser-0/+40
Normally, `Thread::spawn` takes care of setting the thread's name, if one was provided, but since the main thread wasn't created by calling `Thread::spawn`, we need to call that function in `std::rt::init`. This is mainly useful for system tools like debuggers and profilers which might show the thread name to a user. Prior to these changes, gdb and WinDbg would show all thread names except the main thread's name to a user. I've validated that this patch resolves the issue for both debuggers.