]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Remove gdb.base/gdbindex-stabs.exp
authorTom de Vries <tdevries@suse.de>
Fri, 24 Oct 2025 13:40:29 +0000 (15:40 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 24 Oct 2025 13:40:29 +0000 (15:40 +0200)
On openSUSE Leap 15.6 x86_64 I ran into:
....
(gdb) file gdbindex-stabs^M
Reading symbols from gdbindex-stabs...^M
warning: stabs debug information is not supported.^M
(gdb) list stabs_function^M
(gdb) FAIL: gdb.base/gdbindex-stabs.exp: list stabs_function
...

Fix this by removing the test-case.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.base/gdbindex-stabs-dwarf.c [deleted file]
gdb/testsuite/gdb.base/gdbindex-stabs.c [deleted file]
gdb/testsuite/gdb.base/gdbindex-stabs.exp [deleted file]

diff --git a/gdb/testsuite/gdb.base/gdbindex-stabs-dwarf.c b/gdb/testsuite/gdb.base/gdbindex-stabs-dwarf.c
deleted file mode 100644 (file)
index b6e3ff8..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/* This testcase is part of GDB, the GNU debugger.
-
-   Copyright 2011-2025 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/>. */
-
-extern void stabs_function (void);
-
-int
-main (void)
-{
-  stabs_function ();
-  return 0;
-}
diff --git a/gdb/testsuite/gdb.base/gdbindex-stabs.c b/gdb/testsuite/gdb.base/gdbindex-stabs.c
deleted file mode 100644 (file)
index 5a4a649..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/* This testcase is part of GDB, the GNU debugger.
-
-   Copyright 2011-2025 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/>. */
-
-void
-stabs_function (void)  /* marker-here */
-{
-}
diff --git a/gdb/testsuite/gdb.base/gdbindex-stabs.exp b/gdb/testsuite/gdb.base/gdbindex-stabs.exp
deleted file mode 100644 (file)
index 9becaa1..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright (C) 2011-2025 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/>.
-
-# This problem is reproducible only when using `gdb/cc-with-index.sh'.
-
-standard_testfile gdbindex-stabs.c
-set srcfile_stabs ${testfile}.c
-set srcfile_dwarf ${testfile}-dwarf.c
-set objfile_stabs [standard_output_file ${testfile}.o]
-set objfile_dwarf [standard_output_file ${testfile}-dwarf.o]
-
-if {[gdb_compile "${srcdir}/${subdir}/${srcfile_stabs}" ${objfile_stabs} object {additional_flags=-gstabs quiet}] != ""
-    || [gdb_compile "${srcdir}/${subdir}/${srcfile_dwarf}" ${objfile_dwarf} object {additional_flags=-gdwarf-2}] != ""
-    || [gdb_compile "${objfile_stabs} ${objfile_dwarf}" ${binfile} executable {nodebug}] != ""} {
-     untested "failed to compile"
-     return -1
-}
-
-clean_restart
-gdb_load $binfile
-
-# FAIL was: No line number known for stabs_function.
-gdb_test "list stabs_function" " marker-here .*"