Re: [PATCH] win32: set threads name

2022-09-30 Thread Richard Henderson
On 9/30/22 06:45, Marc-André Lureau wrote: So you suggest simply setting "name_threads" to false when loading the function failed? Yes. r~

Re: [PATCH] win32: set threads name

2022-09-30 Thread Marc-André Lureau
Hi On Fri, Sep 30, 2022 at 5:35 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 9/30/22 01:08, Marc-André Lureau wrote: > > Hi > > > > On Thu, Sep 29, 2022 at 9:53 PM Richard Henderson < > richard.hender...@linaro.org > > > wrote: > > > >

Re: [PATCH] win32: set threads name

2022-09-30 Thread Richard Henderson
On 9/30/22 01:08, Marc-André Lureau wrote: Hi On Thu, Sep 29, 2022 at 9:53 PM Richard Henderson > wrote: On 9/29/22 06:41, marcandre.lur...@redhat.com wrote: >   void qemu_thread_naming(bool enable) >   {

Re: [PATCH] win32: set threads name

2022-09-30 Thread Marc-André Lureau
Hi On Thu, Sep 29, 2022 at 9:53 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 9/29/22 06:41, marcandre.lur...@redhat.com wrote: > > void qemu_thread_naming(bool enable) > > { > > /* But note we don't actually name them on Windows yet */ > > name_threads = enable

Re: [PATCH] win32: set threads name

2022-09-29 Thread Richard Henderson
On 9/29/22 06:41, marcandre.lur...@redhat.com wrote: void qemu_thread_naming(bool enable) { /* But note we don't actually name them on Windows yet */ name_threads = enable; -fprintf(stderr, "qemu: thread naming not supported on this host\n"); +if (enable && !load_set_t

[PATCH] win32: set threads name

2022-09-29 Thread marcandre . lureau
From: Marc-André Lureau As described in: https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-set-a-thread-name-in-native-code?view=vs-2022 SetThreadDescription() is available since Windows 10, version 1607 and in some versions only by "Run Time Dynamic Linking". Its declaration is not