diff options
author | Tom Tromey <tromey@adacore.com> | 2024-03-05 07:59:55 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-04-02 11:24:27 -0600 |
commit | 542ea7fe46deb713268364fa7b1a3333360e1044 (patch) | |
tree | dd60ed83af06b59536e6bef47e61f7dfedbdb1cc /gdb/ada-lex.l | |
parent | d9d782dd8b6c3665c28f6b610175a0756a7805a4 (diff) | |
download | gdb-542ea7fe46deb713268364fa7b1a3333360e1044.zip gdb-542ea7fe46deb713268364fa7b1a3333360e1044.tar.gz gdb-542ea7fe46deb713268364fa7b1a3333360e1044.tar.bz2 |
Implement Ada 2022 iterated assignment
Ada 2022 includes iterated assignment for array initialization. This
patch implements a subset of this for gdb. In particular, only arrays
with integer index types really work -- currently there's no decent
way to get the index type in EVAL_AVOID_SIDE_EFFECTS mode during
parsing. Fixing this probably requires the Ada parser to take a
somewhat more sophisticated approach to type resolution; and while
this would help fix another bug in this area, this patch is already
useful without it.
Diffstat (limited to 'gdb/ada-lex.l')
-rw-r--r-- | gdb/ada-lex.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l index c54cd5e..e1abf9a 100644 --- a/gdb/ada-lex.l +++ b/gdb/ada-lex.l @@ -227,6 +227,7 @@ abs { return ABS; } and { return _AND_; } delta { return DELTA; } else { return ELSE; } +for { return FOR; } in { return IN; } mod { return MOD; } new { return NEW; } |