From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30936 invoked by alias); 14 Jun 2010 09:14:46 -0000 Received: (qmail 30916 invoked by uid 22791); 14 Jun 2010 09:14:45 -0000 X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_50,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Jun 2010 09:14:40 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o5E9EWNJ036728 ; Mon, 14 Jun 2010 11:14:33 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms5.u-strasbg.fr [IPv6:2001:660:2402:d::14]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id o5E9EVna076704 ; Mon, 14 Jun 2010 11:14:32 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id o5E9EUPi076449 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Mon, 14 Jun 2010 11:14:31 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Stan Shebs'" , References: <4C158675.9090001@codesourcery.com> In-Reply-To: <4C158675.9090001@codesourcery.com> Subject: RE: [PATCH] $thread convenience variable Date: Mon, 14 Jun 2010 09:14:00 -0000 Message-ID: <000f01cb0ba1$fe745c70$fb5d1550$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 X-SW-Source: 2010-06/txt/msg00302.txt.bz2 > -----Message d'origine----- > De=A0: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] De la part de Stan Shebs > Envoy=E9=A0: Monday, June 14, 2010 3:32 AM > =C0=A0: gdb-patches@sourceware.org > Objet=A0: [PATCH] $thread convenience variable >=20 > This little patch adds a periodically-requested convenience variable > whose value is the current thread. It's handy in scripts and > conditionals, since the GDB-assigned thread id is unpredictable. >=20 > Although the original request was for "$thread", it might be better to > make it "$_thread" instead, so as not to interfere with possible use in > existing scripts. But I'll only change it if I get enough votes in > favor. :-) By analogy with: _exitcode _siginfo and _tlb=20 internal variables defined so far, I would vote in favor of '$_thread'. The only other internal variables I found are 'bpnum', 'tpnum' and a whole bunch of 'trace_.*' variables. Pierre Muller Pascal language support maintainer for GDB