aboutsummaryrefslogtreecommitdiff
path: root/gdbserver
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-04-13 08:45:34 -0600
committerTom Tromey <tromey@adacore.com>2022-04-14 12:12:35 -0600
commit8bbdbd6985d8d7615bab69f97f07e8bb78fb98f8 (patch)
tree75278187c8faf5a564fc459afc9e29aa2be382fc /gdbserver
parent1ea519ec192d68397d8b22f55072fc7ba0c5e36c (diff)
downloadgdb-8bbdbd6985d8d7615bab69f97f07e8bb78fb98f8.zip
gdb-8bbdbd6985d8d7615bab69f97f07e8bb78fb98f8.tar.gz
gdb-8bbdbd6985d8d7615bab69f97f07e8bb78fb98f8.tar.bz2
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
Diffstat (limited to 'gdbserver')
-rw-r--r--gdbserver/win32-low.cc2
1 files changed, 1 insertions, 1 deletions
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. */