From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15832 invoked by alias); 18 Jul 2009 15:17:04 -0000 Received: (qmail 15824 invoked by uid 22791); 18 Jul 2009 15:17:03 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp2.ugent.be (HELO smtp2.UGent.be) (157.193.49.126) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Jul 2009 15:16:57 +0000 Received: from localhost (mcheck1.ugent.be [157.193.71.91]) by smtp2.UGent.be (Postfix) with ESMTP id E5193449E90; Sat, 18 Jul 2009 17:16:53 +0200 (CEST) Received: from smtp2.UGent.be ([157.193.49.126]) by localhost (mcheck1.ugent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id xGjF2qabv+md; Sat, 18 Jul 2009 17:16:51 +0200 (CEST) Received: from mail.elis.ugent.be (mail.elis.UGent.be [157.193.206.48]) by smtp2.UGent.be (Postfix) with ESMTP id 8916C449E8F; Sat, 18 Jul 2009 17:16:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.elis.ugent.be (Postfix) with ESMTP id 25C95918F20; Sat, 18 Jul 2009 17:16:50 +0200 (CEST) Received: from mail.elis.ugent.be ([127.0.0.1]) by localhost (mail.elis.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OSHV9tEHKwC5; Sat, 18 Jul 2009 17:16:47 +0200 (CEST) Received: from firefly.lan (71.55-66-87.adsl-dyn.isp.belgacom.be [87.66.55.71]) by mail.elis.ugent.be (Postfix) with ESMTP id 01E06918F19; Sat, 18 Jul 2009 17:16:46 +0200 (CEST) Cc: gdb@sourceware.org, Pierre Muller Message-Id: <606C7EEE-E4B3-4C23-A4D3-94D6DE6E4A6E@elis.ugent.be> From: Jonas Maebe To: Daniel Jacobowitz In-Reply-To: <20090718040915.GA15792@caradoc.them.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: Is bitstring support still useful? Date: Sat, 18 Jul 2009 15:17:00 -0000 References: <20090717143315.GA29728@caradoc.them.org> <20090717144119.GA1298@caradoc.them.org> <4BD69DB5-124E-4BEF-9866-D278F59B9BC9@elis.ugent.be> <20090718040915.GA15792@caradoc.them.org> X-j-chkmail-Enveloppe: 4A61E762.005/157.193.206.48/mail.elis.UGent.be/mail.elis.ugent.be/ X-j-chkmail-Score: MSGID : 4A61E762.005 on smtp2.UGent.be : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham 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-07/txt/msg00123.txt.bz2 On 18 Jul 2009, at 06:09, Daniel Jacobowitz wrote: > Does this compiler support DWARF, Yes. > and if so, how do you represent them > there? type ta = bitpacked array[1..10] of 0..2; becomes: 0x0000007d: TAG_array_type [5] * AT_name( "TA" ) AT_byte_size( 0x00000003 ) AT_bit_stride( 0x00000002 ) AT_type( {0x00000094} ( subrange BYTE ) ) 0x00000087: TAG_subrange_type [6] AT_lower_bound( 0x00000001 ) AT_upper_bound( 0x0000000a ) AT_type( {0x000000a0} ( SHORTINT ) ) 0x0000008e: NULL gdb does not handle this yet though (DW_AT_bit_stride is unsupported in dwarf2read.c). Printing a variable of this type therefore prints it as if it were an array of 10 bytes. But at least the concept is representable in DWARF-3, and it just needs fixes in the DWARF reader (and possibly in the Pascal printer). Jonas