From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27816 invoked by alias); 17 Feb 2011 21:58:25 -0000 Received: (qmail 27806 invoked by uid 22791); 17 Feb 2011 21:58:24 -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; Thu, 17 Feb 2011 21:58:20 +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 p1HLw7gI029116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 Feb 2011 16:58:07 -0500 Received: from host1.dyn.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 p1HLw4CI014871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Feb 2011 16:58:06 -0500 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p1HLw4IE031433; Thu, 17 Feb 2011 22:58:04 +0100 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id p1HLw4GG031427; Thu, 17 Feb 2011 22:58:04 +0100 Date: Thu, 17 Feb 2011 22:10:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [commit/Ada] Fix unconstrained packed array size Message-ID: <20110217215803.GA30633@host1.dyn.jankratochvil.net> References: <1297925036-2762-1-git-send-email-brobecker@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1297925036-2762-1-git-send-email-brobecker@adacore.com> 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-02/txt/msg00439.txt.bz2 On Thu, 17 Feb 2011 07:43:56 +0100, Joel Brobecker wrote: > This patch fixes the problem by correctly computing the array size > in bytes in the case of packed arrays. FYI: print u_var $3 = (warning: unable to get bounds of array, assuming null array ) (gdb) FAIL: gdb.ada/packed_array.exp: print u_var GNU gdb (GDB) 7.2.50.20110217-cvs FAIL GNAT 4.6.0 20110212 (experimental) FAIL GNAT 4.5.3 20110124 (prerelease) FAIL GNAT 4.4.6 20110124 (prerelease) Thanks, Jan