public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Add 128-bit integers to Ada and Rust parsers
@ 2023-03-28 15:49 Tom Tromey
  2023-03-28 15:49 ` [PATCH 1/6] Additions to gdb_mpz Tom Tromey
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Tom Tromey @ 2023-03-28 15:49 UTC (permalink / raw)
  To: gdb-patches

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>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-04-17 17:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28 15:49 [PATCH 0/6] Add 128-bit integers to Ada and Rust parsers Tom Tromey
2023-03-28 15:49 ` [PATCH 1/6] Additions to gdb_mpz Tom Tromey
2023-03-28 15:49 ` [PATCH 2/6] Convert long_const_operation to use gdb_mpz Tom Tromey
2023-03-28 15:49 ` [PATCH 3/6] Add 128-bit integer support to the Rust parser Tom Tromey
2023-03-28 15:49 ` [PATCH 4/6] Add overload of fits_in_type Tom Tromey
2023-03-28 15:49 ` [PATCH 5/6] Remove some Ada parser helper functions Tom Tromey
2023-03-28 15:49 ` [PATCH 6/6] Add 128-bit integer support to the Ada parser Tom Tromey
2023-04-17 17:03 ` [PATCH 0/6] Add 128-bit integers to Ada and Rust parsers Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).