From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32108 invoked by alias); 26 Nov 2007 07:20:54 -0000 Received: (qmail 32099 invoked by uid 22791); 26 Nov 2007 07:20:52 -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; Mon, 26 Nov 2007 07:20:47 +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 lAQ7Kjwv021037 for ; Mon, 26 Nov 2007 02:20:45 -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 lAQ7KiiJ024152 for ; Mon, 26 Nov 2007 02:20:44 -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 lAQ7KgKX009447 for ; Mon, 26 Nov 2007 02:20:43 -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 lAQ7Kf5i016243; Mon, 26 Nov 2007 08:20:41 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.1/8.14.1/Submit) id lAQ7Kfid016242; Mon, 26 Nov 2007 08:20:41 +0100 Date: Mon, 26 Nov 2007 07:20:00 -0000 From: Jan Kratochvil To: gdb-patches@sources.redhat.com Cc: Daniel Jacobowitz Subject: Re: [patch] XLF Fortran: Remove an inappropriate complaint Message-ID: <20071126072041.GA16110@host0.dyn.jankratochvil.net> References: <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> <20071123172104.GA23776@host0.dyn.jankratochvil.net> <20071125145555.GB30778@caradoc.them.org> <20071125221037.GA6297@host0.dyn.jankratochvil.net> <20071125221357.GA20375@caradoc.them.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <20071125221357.GA20375@caradoc.them.org> 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/msg00479.txt.bz2 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 2276 On Sun, 25 Nov 2007 23:13:57 +0100, Daniel Jacobowitz wrote: ... > I'm confused. What's wrong? > > The patch I was replying to removed the complaint call. That seems > fine, since it isn't related to DW_FORM_ref* support. The attached file (a binary patched one GCC output) should have for DW_TAG_array_type <7a>: According to the DWARF3 spec: index type `short int'. Current CVS HEAD GDB complains and assigns: index type `long int' (64-bit int). Therefore GDB violates the DWARF3 spec and the complaint there is right as it warns the user GDB has violated the DWARF3 spec while parsing the ELF file. Regards, Jan Contents of the .debug_abbrev section: Number TAG 2 DW_TAG_variable [no children] DW_AT_name DW_FORM_string DW_AT_decl_file DW_FORM_data1 DW_AT_decl_line DW_FORM_data1 DW_AT_type DW_FORM_ref4 DW_AT_external DW_FORM_flag DW_AT_location DW_FORM_block1 3 DW_TAG_base_type [no children] DW_AT_name DW_FORM_string DW_AT_byte_size DW_FORM_data1 DW_AT_encoding DW_FORM_data1 4 DW_TAG_array_type [has children] DW_AT_sibling DW_FORM_ref4 DW_AT_type DW_FORM_ref4 5 DW_TAG_subrange_type [no children] DW_AT_upper_bound DW_FORM_ref1 DW_AT_visibility DW_FORM_data4 The section .debug_info contains: Compilation Unit @ offset 0x0: Pointer Size: 8 <1><55>: Abbrev Number: 2 (DW_TAG_variable) <56> DW_AT_name : bound <5c> DW_AT_decl_file : 1 <5d> DW_AT_decl_line : 1 <5e> DW_AT_type : <6d> <62> DW_AT_external : 1 <63> DW_AT_location : 9 byte block: 3 0 0 0 0 0 0 0 0 (DW_OP_addr: 0) <1><6d>: Abbrev Number: 3 (DW_TAG_base_type) <6e> DW_AT_name : short int <78> DW_AT_byte_size : 2 <79> DW_AT_encoding : 5 (signed) <1><7a>: Abbrev Number: 4 (DW_TAG_array_type) <7f> DW_AT_type : <9f> <2><83>: Abbrev Number: 5 (DW_TAG_subrange_type) <84> DW_AT_upper_bound : <55> <85> DW_AT_visibility : 0x2 (exported) <1><9f>: Abbrev Number: 3 (DW_TAG_base_type) DW_AT_name : char DW_AT_byte_size : 1 DW_AT_encoding : 6 (signed char) --J2SCkAp4GZ/dPZZf Content-Type: application/x-gzip Content-Disposition: attachment; filename="type-var.o.gz" Content-Transfer-Encoding: base64 Content-length: 887 H4sICP5wSkcCA3R5cGUtdmFyLm8ApVTLbtNAFL3jycONk9AQJCpVSC7PVqJu SIuAILURgdIKxAIpootKyE5MEhHbkT1BhA0rWLBC4gNY8glsWJS/YQtbFmXG HteO8eBKXHleZ+bMPffOeN4+eLwrIQShIdiGaBTZnhT127w+A2XAjFNDi4Wz tL4i1xUsL8sA0hZguaXcVfbrO2WpBIAvU0BRthWAHEKovl8HyK/ARu18ge7w jZbAgZzmHB4+6aoddUu7oTXVZqNxq3GneVNdfWr21T2dBPj65uYaIDKbmFoP Nog1AclwpnYfELKYxgUcboa9oeMSdWQTkPK5DxT5TEu+6wvAY8ceqFPbGw1s uj1bJBdxb6i7gAqS7rr6DBB+M78jXPL1X2Ao+l2t0NpPKWIfl8Ts4kmYR7R0 aQkkfqG9YOsg2k6npa7SmNdOETJo3swiukFb4gbtMOwR8zUBra8THTTD82jX NKaD57phuOYr0FxzrHNoZL9wwunxyDbnJidTw9Ytk/J7jmWZNCWa7RBTowrX PaL3XsL/23KQLigk8LZgfS4xXuF8LOBLGfxr7O6l8O+f0v917h8E/HsJPLl2 R8B/z9ujDH4rRROzg2LQfuTjCrvqPFZmS7x9JPC/i6L8/Mv/oYBvcfBqBv+Z QP+P4rzOCtee1D8W+P/EQS3D/1TA/47Szz8J11LuTpz/LoOPUu6o/x7yH+I2 J1RpUVLiXxD4b/P8ncvwLzLkn8vP47Q5LNgFp0bCcCzAcwI8L8CLAlwW4IoA L/2db/8sI/1hr+rjv47RCZcbf96Dhzx6xMN3rMT/t9DKMTwexaLgHiwJcDOG x6P7GsPLMTyuJ/7G/gFnDp1XAAgAAA== --J2SCkAp4GZ/dPZZf--