[PATCH 0/6] Add 128-bit integers to Ada and Rust parsers
Tom Tromey
tromey@adacore.com
Tue Mar 28 15:49:36 GMT 2023
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,
--
Tom Tromey <tromey@adacore.com>
More information about the Gdb-patches
mailing list