From: jagorak <jagorak@wp.pl>
To: gdb@sourceware.org
Subject: Ada arrays - a problem with aggregate notation.
Date: Sun, 25 Mar 2007 00:24:00 -0000 [thread overview]
Message-ID: <19311509093.20070325002416@wp.pl> (raw)
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
next reply other threads:[~2007-03-25 0:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-25 0:24 jagorak [this message]
2007-03-25 2:04 ` Joel Brobecker
2007-03-25 4:14 ` Eli Zaretskii
2007-03-26 2:16 ` Joel Brobecker
2007-03-26 18:09 ` Re[2]: " jagorak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19311509093.20070325002416@wp.pl \
--to=jagorak@wp.pl \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox