From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13922 invoked by alias); 18 Aug 2012 21:01:29 -0000 Received: (qmail 13908 invoked by uid 22791); 18 Aug 2012 21:01:28 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_NIX_SPAM,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Aug 2012 21:01:14 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M8Y00J00Y8INC00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Sun, 19 Aug 2012 00:01:12 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8Y00JABYE0GH20@a-mtaout22.012.net.il>; Sun, 19 Aug 2012 00:01:12 +0300 (IDT) Date: Sat, 18 Aug 2012 21:01:00 -0000 From: Eli Zaretskii Subject: Re: New warning in GDB 7.5 In-reply-to: <20120818205543.GL2798@adacore.com> To: Joel Brobecker Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <837gsvewyh.fsf@gnu.org> References: <838vdcdl2q.fsf@gnu.org> <20120818205543.GL2798@adacore.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-08/txt/msg00520.txt.bz2 > Date: Sat, 18 Aug 2012 13:55:43 -0700 > From: Joel Brobecker > Cc: gdb-patches@sourceware.org > > > These come from the following 2 lines in src/.gdbinit: > > > > # Force loading of symbols, enough to give us VALBITS etc. > > set main > > # With some compilers, we need this to give us struct Lisp_Symbol etc.: > > set Fmake_symbol > > The comments explain why they are needed. > > Are these really doing anything? Yes. They force GDB to read the symbol table of a couple of object files, so the symbols from those files are known to GDB. That is needed for several commands in the file to work right from the start of the debugging session. > Unless "main" and "Fmake_symbol" were settings No, they are symbols (function names). > I think the warning is actually correct: these commands have no > effect. They have a useful side effect. > The warning was added to catch the situation where the wrong assignment > operator was used. Sigh. I guess we will have to live with this annoyance, then.