From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 984 invoked by alias); 14 Nov 2009 15:54:24 -0000 Received: (qmail 968 invoked by uid 22791); 14 Nov 2009 15:54:22 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Nov 2009 15:53:18 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 773F910E94; Sat, 14 Nov 2009 15:53:17 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 66EC110595; Sat, 14 Nov 2009 15:53:17 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1N9Kw8-0004hO-Pn; Sat, 14 Nov 2009 10:53:16 -0500 Date: Sat, 14 Nov 2009 15:54:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: RFC: Skip declarations in "info variables" Message-ID: <20091114155316.GB17114@caradoc.them.org> Mail-Followup-To: Eli Zaretskii , gdb-patches@sourceware.org References: <20091113214448.GA30270@caradoc.them.org> <833a4ho3ej.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <833a4ho3ej.fsf@gnu.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes 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: 2009-11/txt/msg00329.txt.bz2 On Sat, Nov 14, 2009 at 11:35:00AM +0200, Eli Zaretskii wrote: > To decide whether or not this is a Good Thing, we need to answer a > question: What is the purpose of "info variables"? More specifically, > what are the main use-cases for using it? Can people please share > their experience with this command? > > Without that, I'm not sure we are not removing a potentially useful > behavior. A very good question. I use "info variables" to find definitions - and some information about where they come from. With all the declarations showing up I can't figure out what file defined the variable, which I find inconvenient. Actually, I'd like it even better if I had the memory location... There's usually at least one definition, so the only thing the declarations add is a list of files that (may or may not depending on the whim of the compiler) have referenced the global variable. Thoughts? Anyone see a use for the declarations that I don't? -- Daniel Jacobowitz CodeSourcery