Files
binutils-gdb/gdb/testsuite/gdb.dap/ada-arrays/main.adb
Tom Tromey 708cedb722 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.
2023-09-05 11:10:24 -06:00

25 lines
924 B
Ada

-- Copyright 2023 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
with Pck; use Pck;
procedure Main is
Value : Buffer (1 .. 4) := (1, 2, 3, 4);
Another_Value : AR := (5, 6, 7, 8, 9);
Hello: String := "hello";
begin
Do_Nothing (Value, Another_Value, Hello);
end Main;