From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12676 invoked by alias); 20 Aug 2012 18:56:48 -0000 Received: (qmail 12660 invoked by uid 22791); 20 Aug 2012 18:56:47 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,SPF_SOFTFAIL,TW_GD 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, 20 Aug 2012 18:56:30 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M9200B00HQJ3H00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Mon, 20 Aug 2012 21:56:29 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M9200BXCHY43L00@a-mtaout23.012.net.il>; Mon, 20 Aug 2012 21:56:29 +0300 (IDT) Date: Mon, 20 Aug 2012 18:56:00 -0000 From: Eli Zaretskii Subject: Re: New warning in GDB 7.5 In-reply-to: <87d32lh25h.fsf@fleche.redhat.com> To: Tom Tromey Cc: brobecker@adacore.com, mark.kettenis@xs4all.nl, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83y5l9bdeo.fsf@gnu.org> References: <838vdcdl2q.fsf@gnu.org> <20120818205543.GL2798@adacore.com> <837gsvewyh.fsf@gnu.org> <201208182149.q7ILnLb3017336@glazunov.sibelius.xs4all.nl> <83393jegz3.fsf@gnu.org> <20120819043652.GN2798@adacore.com> <83vcgeddsm.fsf@gnu.org> <878vd9ip57.fsf@fleche.redhat.com> <838vd9cylh.fsf@gnu.org> <87vcgdh3sq.fsf@fleche.redhat.com> <87d32lh25h.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-08/txt/msg00556.txt.bz2 > From: Tom Tromey > Cc: brobecker@adacore.com, mark.kettenis@xs4all.nl, gdb-patches@sourceware.org > Date: Mon, 20 Aug 2012 12:03:06 -0600 > > I rebuilt emacs with -gstabs and my test worked fine. > I didn't try anything else. The problem was described here: http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg01124.html I can still reproduce it, even with GDB 7.5, with a binary of Emacs 24.0.90 (an early pretest of v24.1), which was compiled with GCC 3.4.2 on Windows with "-gdwarf-2 -g3". If I remove this line from .gdbinit: set Fmake_symbol I get this error: D:\gnu\emacs-24.x\emacs-24.0.90\src>gdb ./oo-spd/i386/emacs.exe GNU gdb (GDB) 7.5 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-mingw32". For bug reporting instructions, please see: ... Reading symbols from D:\gnu\emacs-24.x\emacs-24.0.90\src\oo-spd\i386\emacs.exe...done. warning: Expression is not an assignment (and might have no effect) SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] Environment variable "DISPLAY" not defined. Environment variable "TERM" not defined. .gdbinit:1333: Error in sourced command file: <<<<<<<<<<<<<<<<<<< No struct type named Lisp_Symbol. <<<<<<<<<<<<<<<<<<< This doesn't happen with the latest Emacs trunk (nor with several other binaries I have that I tried), compiled with the same version of GCC. So I guess this is some subtle problem that is sensitive to the arrangement of symbols in the debug info or something.