[0/6] Add 128-bit integers to Ada and Rust parsers

Message ID 20230328-expr-128-bit-v1-0-f9eeb0143318@adacore.com
Headers
Series Add 128-bit integers to Ada and Rust parsers |

Message

Tom Tromey March 28, 2023, 3:49 p.m. UTC
  This series changes the Ada and Rust parser to support 128-bit types.

It would be reasonably easy to add this for C/C++ as well, following
the Ada model, but I haven't done this.

Regression tested on x86-64 Fedora 36.

Tom

---
Tom Tromey (6):
      Additions to gdb_mpz
      Convert long_const_operation to use gdb_mpz
      Add 128-bit integer support to the Rust parser
      Add overload of fits_in_type
      Remove some Ada parser helper functions
      Add 128-bit integer support to the Ada parser

 gdb/ada-exp.y                           | 74 ++++++++++++--------------------
 gdb/ada-lang.c                          |  6 ++-
 gdb/ada-lex.l                           | 75 +++++++++++++--------------------
 gdb/ax-gdb.c                            |  4 +-
 gdb/expop.h                             | 26 ++++++++++--
 gdb/expprint.c                          |  6 +++
 gdb/gmp-utils.c                         | 10 +++--
 gdb/gmp-utils.h                         | 48 ++++++++++++++++++++-
 gdb/parse.c                             | 26 ++++++++++++
 gdb/parser-defs.h                       |  2 +
 gdb/rust-lang.c                         |  2 +
 gdb/rust-parse.c                        | 37 ++++++++++------
 gdb/testsuite/gdb.ada/verylong.exp      |  5 +++
 gdb/testsuite/gdb.base/parse_number.exp |  9 ++--
 gdb/testsuite/gdb.rust/onetwoeight.exp  |  4 ++
 15 files changed, 211 insertions(+), 123 deletions(-)
---
base-commit: 134ec14b1502f30f0028293b35f57c18e44614d0
change-id: 20230328-expr-128-bit-d8d749b7089a

Best regards,
  

Comments

Tom Tromey April 17, 2023, 5:03 p.m. UTC | #1
>>>>> "Tom" == Tom Tromey via Gdb-patches <gdb-patches@sourceware.org> writes:

Tom> This series changes the Ada and Rust parser to support 128-bit types.
Tom> It would be reasonably easy to add this for C/C++ as well, following
Tom> the Ada model, but I haven't done this.

Tom> Regression tested on x86-64 Fedora 36.

I've rebased this (no changes needed) and re-regression tested it.
I am checking it in.

Tom