From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8731 invoked by alias); 25 Mar 2007 00:24:31 -0000 Received: (qmail 8717 invoked from network); 25 Mar 2007 00:24:18 -0000 Received: from unknown (212.77.101.5) by sourceware.org with QMTP; 25 Mar 2007 00:24:18 -0000 Received: (wp-smtpd smtp.wp.pl 3466 invoked from network); 25 Mar 2007 01:24:18 +0100 Received: from host86-128-14-58.range86-128.btcentralplus.com (HELO BIGOS) (jagorak@[86.128.14.58]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with SMTP for ; 25 Mar 2007 01:24:18 +0100 Date: Sun, 25 Mar 2007 00:24:00 -0000 From: jagorak X-Mailer: Private Mailer 1.0 Reply-To: jagorak Message-ID: <19311509093.20070325002416@wp.pl> To: gdb@sourceware.org Subject: Ada arrays - a problem with aggregate notation. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO 0000000 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: 2007-03/txt/msg00300.txt.bz2 Hi, The GDB manual (Ninth Edition, for gdb version 6.6.50.20070317) section 12.4.6.2 says: == quote == There is limited support for [Ada] array and record aggregates. They are permitted only on the right sides of assignments, as in these examples: set An_Array := (1, 2, 3, 4, 5, 6) (...) == end quote == The problem is, whenever I try to assign values to elements of an array using the aggregate notation (e.g. (1, 2, 3, 4, 5, 6) as in example above), I'm getting an error message like this one: A syntax error in expression, near ` 2, 3, 4, 5, 6)'. Setting values of individual elements does work set An_Array(1) := 1 set An_Array(2) := 55 etc. but using aggregate would be far more convenient... I have no idea what I might be doing wrong here / what limitation prevents me from using an aggregate notation. Any ideas please? Many thanks, Jan