From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19753 invoked by alias); 20 Aug 2012 17:07:40 -0000 Received: (qmail 19737 invoked by uid 22791); 20 Aug 2012 17:07:38 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,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; Mon, 20 Aug 2012 17:07:11 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7KH77vp007565 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 20 Aug 2012 13:07:08 -0400 Received: from host2.jankratochvil.net (ovpn-116-37.ams2.redhat.com [10.36.116.37]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q7KH727U013564 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 20 Aug 2012 13:07:05 -0400 Date: Mon, 20 Aug 2012 17:07:00 -0000 From: Jan Kratochvil To: Eli Zaretskii Cc: mark.kettenis@xs4all.nl, brobecker@adacore.com, gdb-patches@sourceware.org Subject: Re: New warning in GDB 7.5 Message-ID: <20120820170655.GA12831@host2.jankratochvil.net> References: <201208182149.q7ILnLb3017336@glazunov.sibelius.xs4all.nl> <83393jegz3.fsf@gnu.org> <20120819043652.GN2798@adacore.com> <83vcgeddsm.fsf@gnu.org> <20120819180647.GO2798@adacore.com> <201208191832.q7JIWZmi012610@glazunov.sibelius.xs4all.nl> <83lihad7y3.fsf@gnu.org> <201208191910.q7JJAnQ0023236@glazunov.sibelius.xs4all.nl> <20120820142417.GA1149@host2.jankratochvil.net> <83a9xpcymx.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83a9xpcymx.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00549.txt.bz2 On Mon, 20 Aug 2012 18:32:38 +0200, Eli Zaretskii wrote: > > It will, because GDB generates symbols for each type. See for example: > > process_structure_scope -> new_symbol_full -> > > -> add_symbol_to_list > > If it relies on DW_TAG_structure_type, it needs DWARF, perhaps even > newer than DWARF-2, doesn't it? I have verified it for DWARF (GDB no longer supports version 1 and any version 2 upwards behaves the same in this simple case). I do not know if it works for STABS and other formats but any non-DWARF format has poor debugging anyway and there is normally no reason to use anything else than DWARF. > Emacs debugging shouldn't depend on that. We can conclude then it may be a workaround of GDB bugs in non-DWARF formats support (maybe, maybe not). I do not find meaningful to actively support non-DWARF debugging, it is just best-effort. Thanks, Jan