From 8bbdbd6985d8d7615bab69f97f07e8bb78fb98f8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 13 Apr 2022 08:45:34 -0600 Subject: 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 --- gdbserver/win32-low.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdbserver') diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc index 16c13f3..afeed1a 100644 --- a/gdbserver/win32-low.cc +++ b/gdbserver/win32-low.cc @@ -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. */ -- cgit v1.1