From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14945 invoked by alias); 19 Jul 2011 16:21:12 -0000 Received: (qmail 14935 invoked by uid 22791); 19 Jul 2011 16:21:12 -0000 X-SWARE-Spam-Status: No, hits=-7.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS 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, 19 Jul 2011 16:20:46 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6JGKgEv010352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 19 Jul 2011 12:20:42 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p6JGKfgr010495; Tue, 19 Jul 2011 12:20:42 -0400 Received: from barimba (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 p6JGKeVR006635; Tue, 19 Jul 2011 12:20:40 -0400 From: Tom Tromey To: Eli Zaretskii Cc: Jan Kratochvil , gdb-patches@sourceware.org Subject: Re: [RFC 11/12] entryval: "@entry" in input expressions References: <20110718202410.GL30496@host1.jankratochvil.net> Date: Tue, 19 Jul 2011 16:38:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Tue, 19 Jul 2011 06:55:11 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2011-07/txt/msg00474.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: >> it would be good if one can also: >> (gdb) print refparam@entry >> $1 = 5 Eli> Again, why not just Eli> (gdb) print refparam Eli> ? Ordinarily one wants the current value of the variable, not the variable's entry value. >> +Breakpoint 1, d (i=30) at gdb.base/entry-value.c:29 >> +29 i++; >> +(gdb) next >> +30 e (i); >> +(gdb) print i >> +$1 = 31 >> +(gdb) print i@@entry >> +$2 = 30 Eli> Which doesn't add any information beyond what is already shown in the Eli> first line. What's the point? You can use 'i@entry' in a breakpoint condition. Tom