]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Set thread description on Windows
authorRonan Desplanques <desplanques@adacore.com>
Tue, 16 Dec 2025 14:28:48 +0000 (15:28 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 9 Jan 2026 10:57:19 +0000 (11:57 +0100)
commit6c09f90690ee7ec6609ac5b7b526cbbbc124bb9c
tree32678572670a633ae0a3b747132c84d6284b962b
parent2cc46e7573c9308ec215b4aad5740e8226cfc7ac
ada: Set thread description on Windows

On Windows, the tasking runtime now calls SetThreadDescription on the
underlying system threads with the task images as argument.

gcc/ada/ChangeLog:

* adaint.c (__gnat_set_thread_description): New function.
* libgnarl/s-taprop__mingw.adb (Enter_Task): Set thread description.
* rtinit.c (__gnat_runtime_initialize): Set up function pointer.
* mingw32.h (HRESULT, pSetThreadDescription): New.
gcc/ada/adaint.c
gcc/ada/libgnarl/s-taprop__mingw.adb
gcc/ada/mingw32.h
gcc/ada/rtinit.c