From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2854 invoked by alias); 15 Mar 2011 16:00:23 -0000 Received: (qmail 2791 invoked by uid 22791); 15 Mar 2011 16:00:21 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Mar 2011 16:00:14 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2FG0DZu027407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 15 Mar 2011 12:00:13 -0400 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p2FG0B8A022386 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Mar 2011 12:00:12 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p2FG0BYj021347; Tue, 15 Mar 2011 17:00:11 +0100 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p2FG0AYZ021346; Tue, 15 Mar 2011 17:00:10 +0100 Date: Tue, 15 Mar 2011 16:16:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: gdb-patches@sourceware.org, Petr Machata Subject: DWARF sanity checking [Re: [patch] Fix empty PC range psymtab<->symtab discrepancy] Message-ID: <20110315160010.GA19529@host1.jankratochvil.net> References: <20110314175625.GA29782@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-03/txt/msg00790.txt.bz2 On Tue, 15 Mar 2011 16:45:05 +0100, Tom Tromey wrote: > The patch looks good to me. Checked in: http://sourceware.org/ml/gdb-cvs/2011-03/msg00188.html > Jan> + complaint (&symfile_complaints, > Jan> + _("DW_AT_low_pc %s is not < DW_AT_high_pc %s " > Jan> + "for DIE at 0x%x [in module %s]"), > Jan> + paddress (gdbarch, part_die->lowpc), > Jan> + paddress (gdbarch, part_die->highpc), > Jan> + part_die->offset, cu->objfile->name); > > Thanks for putting this info into the complaint. > One of my minor wish-list items is that we would do this for all DWARF > complaints. While not a GNU project this functionality overlaps with the pmachata/dwarflint branch of elfutils which should be more complete as the checks are not just a side-effect. Unaware how easy would be to port it for non-ELF DWARF and whether the elfutils GPL exception is good enough for FSF. Thanks, Jan