From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18229 invoked by alias); 17 Aug 2010 18:33:41 -0000 Received: (qmail 18219 invoked by uid 22791); 17 Aug 2010 18:33:40 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Aug 2010 18:33:35 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7HIXWA2013240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Aug 2010 14:33:32 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7HIXWKg006483; Tue, 17 Aug 2010 14:33:32 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o7HIXVd0022254; Tue, 17 Aug 2010 14:33:31 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 366F0378196; Tue, 17 Aug 2010 12:33:31 -0600 (MDT) From: Tom Tromey To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: RFA: NEWS update References: <83zkwlqf27.fsf@gnu.org> Date: Tue, 17 Aug 2010 18:33:00 -0000 In-Reply-To: <83zkwlqf27.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 17 Aug 2010 21:17:36 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00265.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: Eli> Can the entry elaborate a bit more about this? I'm afraid I was Eli> unable to understand what will the improvement mean to me as a C++ Eli> programmer. "Puts template parameter in scope" is somewhat cryptic, Eli> IMO. Sure. How about this? Tom Index: NEWS =================================================================== RCS file: /cvs/src/src/gdb/NEWS,v retrieving revision 1.399 diff -u -c -r1.399 NEWS cvs diff: conflicting specifications of output style Write failed flushing stdout buffer. write stdout: Broken pipe *** NEWS 16 Aug 2010 21:19:29 -0000 1.399 --- NEWS 17 Aug 2010 18:33:05 -0000 *************** *** 12,17 **** --- 12,28 ---- result = some_value (10,20) + * C++ Improvements: + + ** GDB now puts template parameters in scope when debugging in an + instantiation. For example, if you have: + + template int func (void) { return X; } + + Then if you step into func<5>, "print X" will show "5". This + feature requires proper debuginfo support from the compiler; it + was added to GCC 4.5. + * GDB now has some support for using labels in the program's source in linespecs. For instance, you can use "advance label" to continue execution to a label.