From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20959 invoked by alias); 17 Apr 2009 10:11:08 -0000 Received: (qmail 20856 invoked by uid 22791); 17 Apr 2009 10:10:51 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Apr 2009 10:10:45 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id n3HAAa1i009449; Fri, 17 Apr 2009 12:10:36 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id n3HAAZBe028822; Fri, 17 Apr 2009 12:10:35 +0200 (CEST) Date: Fri, 17 Apr 2009 10:11:00 -0000 Message-Id: <200904171010.n3HAAZBe028822@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: eliz@gnu.org CC: gdb-patches@sourceware.org In-reply-to: <83ocuvk497.fsf@gnu.org> (message from Eli Zaretskii on Fri, 17 Apr 2009 12:40:04 +0300) Subject: Re: DWARF-related warnings in DJGPP build of GDB References: <834owqmdli.fsf@gnu.org> <83ocuvk497.fsf@gnu.org> 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-04/txt/msg00417.txt.bz2 > Date: Fri, 17 Apr 2009 12:40:04 +0300 > From: Eli Zaretskii > > > Date: Wed, 15 Apr 2009 13:10:49 +0300 > > From: Eli Zaretskii > > > > During debugging with DJGPP build of GDB built out of Apr 10th > > snapshot, I sometimes see various warnings that seem to be related to > > DWARF2. Examples: > > > > During symbol reading, inner block not inside outer block in prompt_for_continue. > > During symbol reading, inner block (0x61ab0-0x6b68b) not inside outer block (0x64c90-0x64d2f). > > During symbol reading, Offset 174868 out of bounds for DW_AT_ranges attribute. > > > > Is this a GCC problem, a GDB problem, or something else? Should I be > > worried? My GCC version is 3.4.3, in case that matters. > > Btw, I see warnings on GNU/Linux as well, with GCC 4.0.3 and Binutils > 2.16.91: > > During symbol reading, incomplete CFI data; unspecified registers (e.g., rax) at 0x444d44. > During symbol reading, DW_AT_type missing from DW_TAG_subrange_type. > > This is when debugging a recent snapshot of GDB with itself. Which probably means that it used the .gdbinit that is automatically generated in the build directory, which has set complaints 1 in it. This makes GDB very picky about the DWARF it is reading. > Does anyone else see this? Are the compiler and/or Binutils installed > on that system (fencepost.gnu.org) too old? Yes, I see messages very similar to those. The exact messages you see depend (mostly) on the specific version of GCC you use. Some of these bugs have been fixed in later versions, others remain. For most of these issues, we have workarounds in GDB.