From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29351 invoked by alias); 10 May 2012 22:08:31 -0000 Received: (qmail 29339 invoked by uid 22791); 10 May 2012 22:08:30 -0000 X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from poczta.oswiecenia.net (HELO poczta.oswiecenia.net) (83.13.108.61) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 May 2012 22:08:15 +0000 Received: from localhost (localhost [127.0.0.1]) by poczta.oswiecenia.net (Postfix) with ESMTP id 91D103BDB60; Fri, 11 May 2012 00:08:13 +0200 (CEST) Received: from poczta.oswiecenia.net ([127.0.0.1]) by localhost (poczta.oswiecenia.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m+5AeJB92zMH; Fri, 11 May 2012 00:08:10 +0200 (CEST) Received: from poczta.oswiecenia.net (unknown [192.168.5.248]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by poczta.oswiecenia.net (Postfix) with ESMTPSA id 510733BDB4A; Fri, 11 May 2012 00:08:10 +0200 (CEST) MIME-Version: 1.0 Date: Thu, 10 May 2012 22:08:00 -0000 From: Tomasz Grobelny To: Tom Tromey Cc: Sergio Durigan Junior , Subject: Re: sun compiler and gdb In-Reply-To: <87pqab93f8.fsf@fleche.redhat.com> References: <25b0084e43f4d35410c8dff55a3be61d@192.168.5.248> <543302446b67dbf68e8cedb69a197d77@192.168.5.248> <871umtrtab.fsf@fleche.redhat.com> <87havoqhxm.fsf@fleche.redhat.com> <4eaa53078c18227995efd9409baaf5eb@192.168.5.248> <87pqab93f8.fsf@fleche.redhat.com> Message-ID: <3a8ec212743662e9fb765b02c1845c90@192.168.5.248> X-Sender: tomasz@grobelny.oswiecenia.net User-Agent: RoundCube Webmail/0.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00045.txt.bz2 On Thu, 10 May 2012 14:39:07 -0600, Tom Tromey wrote: >>>>>> "Tomasz" == Tomasz Grobelny writes: > > Tomasz> Reading symbols from > /login/sg209371/gdbtest/a.out.sparc...expanding to > Tomasz> full symbols...Die: DW_TAG_ (abbrev 9, offset 0x1bb) > > You want DIE 0x1bb... > > Tomasz> parent at offset: 0x197 > > ... or perhaps 0x197 ... > > Tomasz> With the relevant portion of dwarfdump looking like this: > Tomasz> <2>< 443> DW_TAG_SUN_class_template > > But this appears to be DIE 0x443. > Actually it is DIE 443(dec) == 1bb(hex) When you posted output from another dwarfdump version it took me a while to figure out that one tool is giving numbers in hex and the other in dec. > Tomasz> Shouldn't unknown tag just be ignored? > > Yes, but I think what is happening is that you have one DIE which uses > DW_AT_type to refer to another DIE, and gdb doesn't know what to do with > the type DIE. > Does the above comment about dec/hex values change your analysis here? > Tomasz> I searched for other tags that might be compiler specific and > Tomasz> here is the list: > > Those are actually attributes; tags would be DW_TAG_something. > Thanks for pointing that out - I am new to DWARF stuff and do not yet see the difference between attribute, tag and die. > Tomasz> Are any of these supported or (at least) explicitly ignored by gdb? > > AFAIK, no Sun extensions to DWARF are supported by gdb. > Generally they should be ignored, but as you've seen, there are > sometimes exceptions. My impression is that this part of gdb is not > heavily tested. > I will have a look it they can somehow be removed... -- Regards, Tomasz Grobelny