From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5949 invoked by alias); 9 Nov 2005 15:21:45 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 5778 invoked by uid 22791); 9 Nov 2005 15:21:39 -0000 Received: from webmail-outgoing2.us4.outblaze.com (HELO webmail-outgoing.us4.outblaze.com) (205.158.62.67) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 09 Nov 2005 15:21:39 +0000 Received: from unknown (unknown [192.168.9.180]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id B6C4B180021D for ; Wed, 9 Nov 2005 15:21:37 +0000 (GMT) X-OB-Received: from unknown (205.158.62.182) by wfilter.us4.outblaze.com; 9 Nov 2005 15:21:37 -0000 Received: by ws1-6.us4.outblaze.com (Postfix, from userid 1001) id 438E21CE304; Wed, 9 Nov 2005 15:21:37 +0000 (GMT) Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 From: "Ivan Pantushev" To: gdb@sources.redhat.com Date: Wed, 09 Nov 2005 15:21:00 -0000 Subject: Question about "gnu.linkonce.wi." sections - Solved Received: from [212.104.97.37] by ws1-6.us4.outblaze.com with http for ipantushev@iname.com; Wed, 09 Nov 2005 10:21:37 -0500 Message-Id: <20051109152137.438E21CE304@ws1-6.us4.outblaze.com> X-SW-Source: 2005-11/txt/msg00202.txt.bz2 Thanks to Daniel Jacobowitz who pointed that the linker script needs the li= ne: .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } there are no more ".gnu.linkonce.wi.*" sections and the offsets make sense. The initial "Question about "gnu.linkonce.wi." sections" (07 Nov 2005) foll= ows: Hello, I am decoding the debugging information in an Elf/Dwarf_2 file and there are references to type information in ".gnu.linkonce.wi.*" sections which I don't know how to resolve (binutils 2.16.1 and gcc 4.0.2 were used). Here is a part of the ".debug_info" section: Compilation Unit @ 0: Length: 79 Version: 2 Abbrev Offset: 0 Pointer Size: 4 <0>: Abbrev Number: 1 (DW_TAG_compile_unit) DW_AT_stmt_list : 0 DW_AT_low_pc : 0x100000 DW_AT_high_pc : 0x100090 DW_AT_name : startup.gas DW_AT_comp_dir : d:\test DW_AT_producer : GNU AS 2.16.1 DW_AT_language : 32769 (MIPS assembler) Compilation Unit @ 53: Length: 235 Version: 2 Abbrev Offset: 20 Pointer Size: 4 <0><5e>: Abbrev Number: 3 (DW_TAG_compile_unit) DW_AT_macro_info : 0 DW_AT_stmt_list : 98 DW_AT_high_pc : 0x100090 DW_AT_low_pc : 0x100090 DW_AT_producer : GNU C 4.0.2 -g DW_AT_language : 1 (ANSI C) DW_AT_name : board.c DW_AT_comp_dir : d:\test - - - <1>: Abbrev Number: 6 (DW_TAG_array_type) DW_AT_sibling : DW_AT_type : <#19> The last DW_AT_type references type information at offset 0x19, but there is no such information in the .debug_info section. There are 18 ".gnu.linkonce.wi.FILENAME.h.*" sections and there is a type info at offset 19 in each of them (instead of * there is a hexadecimal number like b10c314a for example). How do I find out which ".gnu.linkonce.wi.FILENAME.h.*" section is the o= ne to be used for the type information (of the array type at offset 0xc2 in the ".debug_info" section)? Thank you for your time. Greetings, Ivan Pantushev --=20 ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/