From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15416 invoked by alias); 7 Jun 2009 17:59:13 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 15404 invoked by uid 22791); 7 Jun 2009 17:59:13 -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 Date: Sun, 07 Jun 2009 17:59:00 -0000 From: Jan Kratochvil To: Joost van der Sluis Cc: archer@sourceware.org Subject: Re: Calculating array length Message-ID: <20090607175903.GA9385@host0.dyn.jankratochvil.net> References: <1244370173.22994.14.camel@wsjoost> <20090607144745.GA21154@host0.dyn.jankratochvil.net> <1244390772.8081.39.camel@wsjoost> <20090607174924.GA4174@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090607174924.GA4174@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.19 (2009-01-05) X-SW-Source: 2009-q2/txt/msg00148.txt.bz2 On Sun, 07 Jun 2009 19:49:24 +0200, Jan Kratochvil wrote: > Guessing there should be new DWARF DW_AT_data_byte_size to be used in such > case together with DW_AT_byte_size. DW_AT_data_byte_size would specify the > variable size (8, 5, 13) and DW_AT_byte_size would specify the descriptor size > (8 bytes in this case, assuming you used 32bit arch here). That is excessive. DW_AT_byte_size of the array itself should specify its size possibly less than number_of_elements * dw_at_byte_stride. Sorry, Jan