From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19411 invoked by alias); 23 Nov 2007 17:21:32 -0000 Received: (qmail 19403 invoked by uid 22791); 23 Nov 2007 17:21:31 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 23 Nov 2007 17:21:25 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id lANHLN5J029353 for ; Fri, 23 Nov 2007 12:21:23 -0500 Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lANHL8Pn002545 for ; Fri, 23 Nov 2007 12:21:09 -0500 Received: from host0.dyn.jankratochvil.net (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.stuttgart.redhat.com (8.13.1/8.13.1) with ESMTP id lANHL5uu021760 for ; Fri, 23 Nov 2007 12:21:07 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.1/8.14.1) with ESMTP id lANHL4rg024468; Fri, 23 Nov 2007 18:21:04 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.1/8.14.1/Submit) id lANHL4Qo024467; Fri, 23 Nov 2007 18:21:04 +0100 Date: Fri, 23 Nov 2007 17:21:00 -0000 From: Jan Kratochvil To: Carlos Eduardo Seo Cc: gdb-patches@sources.redhat.com Subject: [patch] XLF Fortran: Remove an inappropriate complaint [Re: XLF Fortran arrays test] Message-ID: <20071123172104.GA23776@host0.dyn.jankratochvil.net> References: <20071116032002.GA9885@host0.dyn.jankratochvil.net> <473DD96D.5020900@linux.vnet.ibm.com> <20071116194448.GA32395@host0.dyn.jankratochvil.net> <4741A077.9050900@linux.vnet.ibm.com> <20071123015957.GA3202@host0.dyn.jankratochvil.net> <20071123021120.GA11797@host0.dyn.jankratochvil.net> <20071123163125.GA23275@host0.dyn.jankratochvil.net> <4747086C.3070100@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <4747086C.3070100@linux.vnet.ibm.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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: 2007-11/txt/msg00434.txt.bz2 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 761 On Fri, 23 Nov 2007 18:05:48 +0100, Carlos Eduardo Seo wrote: ... > The only strange behavior is that when I set a breakpoint, I get this > message: > > During symbol reading, DW_AT_type missing from DW_TAG_subrange_type. This code was there already before my changes. And the XLF output really misses DW_AT_type for DW_TAG_subrange_type. But it should be correct: http://dwarf.freestandards.org/Dwarf3.pdf 5.12 Subrange Type Entries The subrange entry may have a DW_AT_type attribute to describe the type of object, called the basis type, of whose values this subrange is a subset. "may have" should not produce a `complaint' category message as it is not a standard violation. Providing a patch but I do not know much more about it. Regards, Jan --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="gdb-subrange-no-type-ok.patch" Content-length: 611 2007-11-23 Jan Kratochvil * dwarf2read.c (read_subrange_type): Remove the missing DW_AT_type complaint. --- ./gdb/dwarf2read.c 25 Oct 2007 20:54:27 -0000 1.236 +++ ./gdb/dwarf2read.c 23 Nov 2007 17:17:44 -0000 @@ -4933,8 +4933,6 @@ read_subrange_type (struct die_info *die base_type = die_type (die, cu); if (TYPE_CODE (base_type) == TYPE_CODE_VOID) { - complaint (&symfile_complaints, - _("DW_AT_type missing from DW_TAG_subrange_type")); base_type = dwarf_base_type (DW_ATE_signed, gdbarch_addr_bit (current_gdbarch) / 8, cu); --SUOF0GtieIMvvwua--