Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 00/12] Ada iterated assignment, plus parser cleanups
Date: Thu, 21 Mar 2024 13:03:28 -0600	[thread overview]
Message-ID: <20240321-ada-iterated-assign-v1-0-925cdd4f1f4a@adacore.com> (raw)

This series implements the Ada 2022 iterated assignment feature.  An
earlier version of the patch failed to clear a new global in the
parser, so I also ended up tacking on a series to make sure this
problem can't happen again -- all parser state is moved into a new
object.  (All the parsers should do this, or go further and follow
Rust into recursive descent, IMNSHO.)

Tested on x86-64 Fedora 38.  This has also been running inside AdaCore
for a while now.

---
Tom Tromey (12):
      Introduce and use aggregate_assigner type
      Implement Ada 2022 iterated assignment
      Introduce ada_parse_state
      Move "int_storage" global into ada_parse_state
      Move "components" and "associations" into ada_parse_state
      Move "assignments" global into ada_parse_state
      Move "iterated_associations" into ada_parse_state
      Move "temp_parse_space" into ada_parse_state
      Move "paren_depth" into ada_parse_state
      Move "returned_complete" into ada_parse_state
      Remove "numbuf" global
      Constify ada-lex.l:attributes

 gdb/ada-exp.h                                  | 165 ++++++++++++++-----
 gdb/ada-exp.y                                  | 212 ++++++++++++++++---------
 gdb/ada-lang.c                                 | 202 +++++++++++++----------
 gdb/ada-lex.l                                  |  48 +++---
 gdb/testsuite/gdb.ada/iterated-assign.exp      |  37 +++++
 gdb/testsuite/gdb.ada/iterated-assign/main.adb |  24 +++
 gdb/testsuite/gdb.ada/iterated-assign/pck.adb  |  23 +++
 gdb/testsuite/gdb.ada/iterated-assign/pck.ads  |  26 +++
 8 files changed, 509 insertions(+), 228 deletions(-)
---
base-commit: 7e949f08700b077b78e955c653eb4e9455027101
change-id: 20240321-ada-iterated-assign-da4127ab3d6d

Best regards,
-- 
Tom Tromey <tromey@adacore.com>


             reply	other threads:[~2024-03-21 19:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-21 19:03 Tom Tromey [this message]
2024-03-21 19:03 ` [PATCH 01/12] Introduce and use aggregate_assigner type Tom Tromey
2024-03-21 19:03 ` [PATCH 02/12] Implement Ada 2022 iterated assignment Tom Tromey
2024-03-21 19:03 ` [PATCH 03/12] Introduce ada_parse_state Tom Tromey
2024-03-21 19:03 ` [PATCH 04/12] Move "int_storage" global into ada_parse_state Tom Tromey
2024-03-21 19:03 ` [PATCH 05/12] Move "components" and "associations" " Tom Tromey
2024-03-21 19:03 ` [PATCH 06/12] Move "assignments" global " Tom Tromey
2024-03-21 19:03 ` [PATCH 07/12] Move "iterated_associations" " Tom Tromey
2024-03-21 19:03 ` [PATCH 08/12] Move "temp_parse_space" " Tom Tromey
2024-03-21 19:03 ` [PATCH 09/12] Move "paren_depth" " Tom Tromey
2024-03-21 19:03 ` [PATCH 10/12] Move "returned_complete" " Tom Tromey
2024-03-21 19:03 ` [PATCH 11/12] Remove "numbuf" global Tom Tromey
2024-03-21 19:03 ` [PATCH 12/12] Constify ada-lex.l:attributes Tom Tromey
2024-04-02 17:35 ` [PATCH 00/12] Ada iterated assignment, plus parser cleanups Tom Tromey

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=20240321-ada-iterated-assign-v1-0-925cdd4f1f4a@adacore.com \
    --to=tromey@adacore.com \
    --cc=gdb-patches@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