Handle array- and string-like values in no-op pretty printers
authorTom Tromey <tromey@adacore.com>
Fri, 21 Jul 2023 15:34:21 +0000 (09:34 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 5 Sep 2023 17:10:24 +0000 (11:10 -0600)
commit708cedb722130686607d086085bac963a406580a
tree20a3a121fd069b974a74bc683b4da3da4e921bc1
parent59668c9d8c2fd10a521b06f2183b054498421d66
Handle array- and string-like values in no-op pretty printers

This changes the no-op pretty printers -- used by DAP -- to handle
array- and string-like objects known by the gdb core.  Two new tests
are added, one for Ada and one for Rust.
gdb/python/lib/gdb/printing.py
gdb/testsuite/gdb.dap/ada-arrays.exp [new file with mode: 0644]
gdb/testsuite/gdb.dap/ada-arrays/cstuff.c [new file with mode: 0644]
gdb/testsuite/gdb.dap/ada-arrays/main.adb [new file with mode: 0644]
gdb/testsuite/gdb.dap/ada-arrays/pck.adb [new file with mode: 0644]
gdb/testsuite/gdb.dap/ada-arrays/pck.ads [new file with mode: 0644]
gdb/testsuite/gdb.dap/rust-slices.exp [new file with mode: 0644]
gdb/testsuite/gdb.dap/rust-slices.rs [new file with mode: 0644]