mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
Use GetThreadDescription on Windows
Windows 10 introduced SetThreadDescription and GetThreadDescription, a simpler way to set a thread's name. This changes gdb and gdbserver to use this convention when it is available. This is part of PR win32/29050. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29050
This commit is contained in:
@@ -1508,7 +1508,7 @@ win32_process_target::thread_name (ptid_t thread)
|
||||
windows_thread_info *th
|
||||
= windows_process.thread_rec (current_thread_ptid (),
|
||||
DONT_INVALIDATE_CONTEXT);
|
||||
return th->name.get ();
|
||||
return th->thread_name ();
|
||||
}
|
||||
|
||||
/* The win32 target ops object. */
|
||||
|
||||
Reference in New Issue
Block a user