From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58564 invoked by alias); 19 May 2019 13:32:36 -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 58556 invoked by uid 89); 19 May 2019 13:32:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:2047 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 19 May 2019 13:32:34 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSLvU-0003gC-QM; Sun, 19 May 2019 09:32:32 -0400 Received: from [176.12.224.28] (port=52462 helo=[10.163.173.227]) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1hSLvT-0000Wh-FQ; Sun, 19 May 2019 09:32:32 -0400 Date: Sun, 19 May 2019 13:32:00 -0000 User-Agent: K-9 Mail for Android In-Reply-To: <1558269697.1454.11.camel@skynet.be> References: <20190518182306.22937-1-philippe.waroquiers@skynet.be> <83r28v8u1j.fsf@gnu.org> <1558269697.1454.11.camel@skynet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [RFA] Give thread names in thread events, give Ada task names in more output. To: gdb-patches@sourceware.org,Philippe Waroquiers From: Eli Zaretskii Message-ID: <3E682804-A278-454D-B2BC-6AD08C24F88D@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00456.txt.bz2 On May 19, 2019 1:41:37 PM GMT+01:00, Philippe Waroquiers wrote: > On Sat, 2019-05-18 at 22:03 +0300, Eli Zaretskii wrote: > > > From: Philippe Waroquiers > > > Cc: Philippe Waroquiers > > > Date: Sat, 18 May 2019 20:23:06 +0200 > > >=20 > > > With this patch, we e.g. get: > > > [New Thread 0x7ffff701b700 (LWP 13891) "sleepers"] > > > [Switching to thread 2 (Thread 0x7ffff781c700 (LWP 13890) > "sleepers")] > > > instead of: > > > [New Thread 0x7ffff701b700 (LWP 13918)] > > > [Switching to thread 2 (Thread 0x7ffff781c700 (LWP 13917))] > > >=20 > > > For Ada tasks, we e.g. get: > > > [Switching to task 2 task_list(1)] > > > [Current task is 2 task_list(1)] > > > instead of > > > [Switching to task 2] > > > [Current task is 2] > >=20 > > Except for Ada, the names are only available on some platforms, > right? > > Should we mention that in the manual? > The manual currently describes the thread name and the way GDB > shows the 'system thread name' only some systems in the command > 'thread name' in the node 'Debugging Programs with Multiple Threads'. >=20 > What about the below addition ? >=20 > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index 9de56061d9..8361d68cef 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -3284,6 +3284,9 @@ disable printing of messages when @value{GDBN} > notices that new threads have > =C2=A0started or that threads have exited.=C2=A0=C2=A0By default, these m= essages will > =C2=A0be printed if detection of these events is supported by the target. > =C2=A0Note that these messages cannot be disabled on all targets. > +The thread event message contains the thread name if @value{GDBN} can > determine > +its value by retrieving it from the OS or by using the thread name > given by > +the user (see @code{thread name}, above). > =C2=A0 > =C2=A0@kindex show print thread-events > =C2=A0@item show print thread-events Fine wirh me, thanks.