From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30835 invoked by alias); 9 Apr 2012 17:55:33 -0000 Received: (qmail 30795 invoked by uid 22791); 9 Apr 2012 17:55:32 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Apr 2012 17:55:17 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M2800M004CJS100@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Mon, 09 Apr 2012 20:55:15 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.57.204]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2800MZM4G2OPD1@a-mtaout23.012.net.il>; Mon, 09 Apr 2012 20:55:15 +0300 (IDT) Date: Mon, 09 Apr 2012 17:55:00 -0000 From: Eli Zaretskii Subject: Re: [2/2] RFA: implement 'set print symbol' In-reply-to: <87zkak94w8.fsf@fleche.redhat.com> To: Tom Tromey Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83r4vw7pwv.fsf@gnu.org> References: <871uo2giob.fsf@fleche.redhat.com> <83obr5c27t.fsf@gnu.org> <87hawtasc9.fsf@fleche.redhat.com> <83zkak7ttt.fsf@gnu.org> <87zkak94w8.fsf@fleche.redhat.com> 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: 2012-04/txt/msg00153.txt.bz2 > From: Tom Tromey > Cc: gdb-patches@sourceware.org > Date: Mon, 09 Apr 2012 11:44:23 -0600 > > >>>>> "Eli" == Eli Zaretskii writes: > > Tom> If you pick a better name, I will change the patch. > > Eli> How about "set print auto-symbol-filename"? > > Eli> Or maybe make "set print symbol-filename" a tristate setting, with an > Eli> additional state "always"? > > It isn't directly related to whether or not the file name is printed. > It has to do with whether the symbol name itself is printed. > So I don't think either of these really fits. Maybe I misunderstand what "set print symbol-filename" does, but at least the manual seems to imply that it affects "print /a": If you have a pointer and you are not sure where it points, try @samp{set print symbol-filename on}. Then you can determine the name and source file location of the variable where it points, using @samp{p/a @var{pointer}}. This interprets the address in symbolic form. And your change makes it so the symbol is printed even without the /a part, AFAIU. So what am I missing?