This is the mail archive of the
mailing list for the GDB project.
Ada arrays - a problem with aggregate notation.
- From: jagorak <jagorak at wp dot pl>
- To: gdb at sourceware dot org
- Date: Sun, 25 Mar 2007 00:24:16 +0000
- Subject: Ada arrays - a problem with aggregate notation.
- Reply-to: jagorak <jagorak at wp dot pl>
The GDB manual (Ninth Edition, for gdb version 220.127.116.1170317)
section 18.104.22.168 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
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?