From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11351 invoked by alias); 22 Nov 2009 11:04:05 -0000 Received: (qmail 11176 invoked by uid 22791); 22 Nov 2009 11:04:04 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS 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; Sun, 22 Nov 2009 11:03:05 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAMB33e6007966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 22 Nov 2009 06:03:03 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAMB31IW000997 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 22 Nov 2009 06:03:03 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id nAMB30c2009655; Sun, 22 Nov 2009 12:03:00 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id nAMB2xjJ009652; Sun, 22 Nov 2009 12:02:59 +0100 Date: Sun, 22 Nov 2009 20:22:00 -0000 From: Jan Kratochvil To: Jack Howarth Cc: gdb@sourceware.org Subject: Re: check for valid location of zero length dwarf block forms? Message-ID: <20091122110259.GA9268@host0.dyn.jankratochvil.net> References: <20091121034258.GA6166@bromo.med.uc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091121034258.GA6166@bromo.med.uc.edu> User-Agent: Mutt/1.5.20 (2009-08-17) 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: 2009-11/txt/msg00171.txt.bz2 On Sat, 21 Nov 2009 04:42:58 +0100, Jack Howarth wrote: > ...as dwarf debug info containing an AT_location with > any block form having a zero length. It is correct and equivalent according to the DWARF spec. and for gcc it seems to differentiate a case of known optimized-out value (=empty) vs. the case of gcc failed to describe the variable location (=missing). dwarflint: DW_AT_location being empty vs. missing check https://fedorahosted.org/pipermail/elfutils-devel/2009-March/000179.html https://fedorahosted.org/pipermail/elfutils-devel/2009-March/000180.html Regards, Jan