From 464dd14d58f648ec577fda6004708c385e3084a3 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 3 Feb 2005 03:58:53 +0000 Subject: * gdb.ada/gnat_ada.gpr: New file. * gdb.ada/gnat_ada.gin: Delete, no longer used. * lib/ada.exp (gdb_compile_ada): Minor adaptation to new project file. * configure.ac: No longer generate gnat_ada.gpr. * configure: Regenerate. * gdb.ada/Makefile.in: Minor adaptations due to new project file. * gdb.ada/null_record/null_record.adb: Moved here from gdb.ada. * gdb.ada/null_record/bar.ads: Likewise. * gdb.ada/null_record/bar.adb: Likewise. * gdb.ada/fixed_points/fixed_points.adb: Likewise. * gdb.ada/null_record.exp (testdir): New variable. (testfile): executable is now in testdir subdirectory. (srcfile): Use full path to the main compilation unit. * gdb.ada/fixed_points.exp: Same changes as above. --- gdb/testsuite/gdb.ada/null_record/bar.adb | 24 +++++++++++++++++++++++ gdb/testsuite/gdb.ada/null_record/bar.ads | 23 ++++++++++++++++++++++ gdb/testsuite/gdb.ada/null_record/null_record.adb | 23 ++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 gdb/testsuite/gdb.ada/null_record/bar.adb create mode 100644 gdb/testsuite/gdb.ada/null_record/bar.ads create mode 100644 gdb/testsuite/gdb.ada/null_record/null_record.adb (limited to 'gdb/testsuite/gdb.ada/null_record') diff --git a/gdb/testsuite/gdb.ada/null_record/bar.adb b/gdb/testsuite/gdb.ada/null_record/bar.adb new file mode 100644 index 00000000000..9c751399cb1 --- /dev/null +++ b/gdb/testsuite/gdb.ada/null_record/bar.adb @@ -0,0 +1,24 @@ +-- Copyright 2004 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 2 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, write to the Free Software +-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +package body Bar is + + procedure Do_Nothing is + begin + null; + end Do_Nothing; + +end Bar; diff --git a/gdb/testsuite/gdb.ada/null_record/bar.ads b/gdb/testsuite/gdb.ada/null_record/bar.ads new file mode 100644 index 00000000000..c3ca11b06d3 --- /dev/null +++ b/gdb/testsuite/gdb.ada/null_record/bar.ads @@ -0,0 +1,23 @@ +-- Copyright 2004 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 2 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, write to the Free Software +-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +package Bar is + + type Empty is null record; + + procedure Do_Nothing; + +end Bar; diff --git a/gdb/testsuite/gdb.ada/null_record/null_record.adb b/gdb/testsuite/gdb.ada/null_record/null_record.adb new file mode 100644 index 00000000000..260b3d66097 --- /dev/null +++ b/gdb/testsuite/gdb.ada/null_record/null_record.adb @@ -0,0 +1,23 @@ +-- Copyright 2004 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 2 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, write to the Free Software +-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +with Bar; use Bar; + +procedure Null_Record is +begin + Do_Nothing; +end Null_Record; + -- cgit v1.2.1