public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Handle pointers and references correctly in DAP
@ 2023-09-05 19:47 Tom Tromey
  2023-09-05 19:47 ` [PATCH 1/5] Pass a type allocator to init_fixed_point_type Tom Tromey
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Tom Tromey @ 2023-09-05 19:47 UTC (permalink / raw)
  To: gdb-patches

This series started off as a simple implementation of a no-op
pretty-printer to handle pointers and references in DAP.

However, this regressed a test, and I realized that the new
is-array-like and is-string-like code should be generalized to work
with any language.

This is done by associating a language with each type, which meant
touching every debug reader, plus a few minor preliminary cleanups.

Regression tested on x86-64 Fedora 36.

---
Tom Tromey (5):
      Pass a type allocator to init_fixed_point_type
      Regularize some DWARF type initialization
      Add is_array_like and to_array to language_defn
      Give a language to a type
      Handle pointers and references correctly in DAP

 gdb/ada-lang.c                   |  13 +++++
 gdb/coffread.c                   |   4 +-
 gdb/ctfread.c                    |  17 ++++---
 gdb/dwarf2/read.c                |  89 +++++++++++++++++----------------
 gdb/gdbtypes.c                   |  31 ++++++------
 gdb/gdbtypes.h                   |  37 ++++++++------
 gdb/language.h                   |  11 +++++
 gdb/mdebugread.c                 |   9 ++--
 gdb/python/lib/gdb/printing.py   |  16 ++++++
 gdb/python/py-type.c             |  13 ++---
 gdb/rust-lang.h                  |  10 ++++
 gdb/stabsread.c                  |  20 ++++----
 gdb/testsuite/gdb.dap/ptrref.cc  |  34 +++++++++++++
 gdb/testsuite/gdb.dap/ptrref.exp | 103 +++++++++++++++++++++++++++++++++++++++
 gdb/valarith.c                   |   6 +--
 15 files changed, 303 insertions(+), 110 deletions(-)
---
base-commit: a006bc9c37e95b4afaf85715cc54fe57b3300ccd
change-id: 20230905-dap-30821-pointers-6b62c5cb8a9f

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


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

end of thread, other threads:[~2023-09-19 19:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-05 19:47 [PATCH 0/5] Handle pointers and references correctly in DAP Tom Tromey
2023-09-05 19:47 ` [PATCH 1/5] Pass a type allocator to init_fixed_point_type Tom Tromey
2023-09-05 19:47 ` [PATCH 2/5] Regularize some DWARF type initialization Tom Tromey
2023-09-05 19:47 ` [PATCH 3/5] Add is_array_like and to_array to language_defn Tom Tromey
2023-09-05 19:47 ` [PATCH 4/5] Give a language to a type Tom Tromey
2023-09-05 19:47 ` [PATCH 5/5] Handle pointers and references correctly in DAP Tom Tromey
2023-09-19 19:30 ` [PATCH 0/5] " 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).