From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4383 invoked by alias); 19 Aug 2010 18:48:50 -0000 Received: (qmail 4373 invoked by uid 22791); 19 Aug 2010 18:48:49 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Aug 2010 18:48:44 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 0ADEC2BAB0A; Thu, 19 Aug 2010 14:48:43 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3+goRAYLPYwe; Thu, 19 Aug 2010 14:48:42 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id D074C2BAAEE; Thu, 19 Aug 2010 14:48:42 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 1A31DF59B2; Thu, 19 Aug 2010 20:48:41 +0200 (CEST) From: Joel Brobecker To: gdb-patches@sourceware.org Cc: Joel Brobecker Subject: [RFA/NEWS] Document the $_thread convenience variable Date: Thu, 19 Aug 2010 18:48:00 -0000 Message-Id: <1282243720-32461-1-git-send-email-brobecker@adacore.com> 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-08/txt/msg00353.txt.bz2 Hello, This document the new $_thread convenience variable (placed in the `in GDB 7.2' section, since this was introduced after 7.1 and will be part of 7.2). If approved for HEAD, I will also port for the 7.2 branch. Stan, you owe me one - fortunately for you, I'm cheap, because I cannot drink alcohol ;-). gdb/ChangeLog: * NEWS: Document $_thread. OK to apply? Thanks, -- Joel --- gdb/NEWS | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/gdb/NEWS b/gdb/NEWS index bf37ed8..59e8953 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -231,6 +231,10 @@ strace FN | FILE:LINE | *ADDR | -m MARKER_ID disassemble The disassemble command now supports "start,+length" form of two arguments. +* New convenience variable: $_thread + This convenience variable contains the number of the current thread. + This may be useful inside breakpoint conditions, command scripts, etc. + * Python scripting ** GDB now provides a new directory location, called the python directory, -- 1.7.1