From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130613 invoked by alias); 23 Jul 2016 09:33:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 130596 invoked by uid 89); 23 Jul 2016 09:33:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=browse, sk:e118856, msdn.microsoft.com, MSDN X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sat, 23 Jul 2016 09:33:02 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQtIn-0007jI-Tc for gdb-patches@sourceware.org; Sat, 23 Jul 2016 05:33:01 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQtIn-0007jE-Q6; Sat, 23 Jul 2016 05:32:57 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2521 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bQtIj-00088C-Uk; Sat, 23 Jul 2016 05:32:55 -0400 Date: Sat, 23 Jul 2016 09:33:00 -0000 Message-Id: <8337n0wvfz.fsf@gnu.org> From: Eli Zaretskii To: LRN CC: gdb-patches@sourceware.org In-reply-to: <5052d495-ea40-b364-96ea-9e68c90bd747@gmail.com> (message from LRN on Sat, 23 Jul 2016 12:25:15 +0300) Subject: Re: Program-assigned thread names on Windows Reply-to: Eli Zaretskii References: <5052d495-ea40-b364-96ea-9e68c90bd747@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00308.txt.bz2 > From: LRN > Date: Sat, 23 Jul 2016 12:25:15 +0300 > > The attached patch adds thread naming support on Windows. > > This works as documented[1] on MSDN - by catching a specific > exception that the program throws. > > Setting thread name this way is supported by glib[2] and winpthreads[3] at > least, as well as any program developed with MS toolchain (because WinDbg > supported this for a long time). > > [1] https://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx > [2] > https://git.gnome.org/browse/glib/commit/glib/gthread-win32.c?id=e118856430a798bbc529691ad235fd0b0684439d > [3] > https://sourceforge.net/p/mingw-w64/mingw-w64/ci/0d95c795b44b76e1b60dfc119fd93cfd0cb35816/ Thanks. But I don't think what that means in terms of the "thread name", "thread find", and "info threads" commands in GDB. Can you tell?