From: Tom de Vries Date: Fri, 24 Oct 2025 13:40:29 +0000 (+0200) Subject: [gdb/testsuite] Remove gdb.base/gdbindex-stabs.exp X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3a3f8fd3e2e270ffe4c9c02567449d3b127406e;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Remove gdb.base/gdbindex-stabs.exp 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 --- diff --git a/gdb/testsuite/gdb.base/gdbindex-stabs-dwarf.c b/gdb/testsuite/gdb.base/gdbindex-stabs-dwarf.c deleted file mode 100644 index b6e3ff88eb5..00000000000 --- a/gdb/testsuite/gdb.base/gdbindex-stabs-dwarf.c +++ /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 . */ - -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 index 5a4a6497905..00000000000 --- a/gdb/testsuite/gdb.base/gdbindex-stabs.c +++ /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 . */ - -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 index 9becaa14fe2..00000000000 --- a/gdb/testsuite/gdb.base/gdbindex-stabs.exp +++ /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 . - -# 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 .*"