[gdb/testsuite] Silence warnings about obsolete -gstabs
authorTom de Vries <tdevries@suse.de>
Wed, 12 Oct 2022 15:02:15 +0000 (17:02 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 12 Oct 2022 15:02:15 +0000 (17:02 +0200)
When running test-case gdb.base/gdbindex-stabs.exp on openSUSE Tumbleweed (with
gcc 12) I get:
...
gdb compile failed, gdb/testsuite/gdb.base/gdbindex-stabs.c: warning: \
  STABS debugging information is obsolete and not supported anymore
...

Silence the warning by passing quiet to gdb_compile.  Likewise in two other
test-cases.

gdb/testsuite/gdb.base/gdbindex-stabs.exp
gdb/testsuite/gdb.dwarf2/dw2-ranges.exp
gdb/testsuite/gdb.stabs/gdb11479.exp

index 955666d63238075730f3fa6227d6304d2942c69f..2df8fe9fe4444280874ab72a8b3b247115903b0e 100644 (file)
@@ -21,7 +21,7 @@ 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}] != ""
+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"
index e2d6d75044caecc8878be768b03680915e5eafac..b7b3223b58709b8396cd4a98c4f91210b5b9597b 100644 (file)
@@ -51,7 +51,7 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${asmfile2}" assembly {}] !=
 # STABS compilation is intentional as it tests the STABS lookup where is no
 # partial_symtab->psymtabs_addrmap supported for that CU (Compilation Unit) in
 # a file containing psymtabs_addrmap-supporting DWARF CUs.
-if {[gdb_compile "${srcdir}/${subdir}/${srcfile3}" "${objfile3}" object {additional_flags=-gstabs}] != "" } {
+if {[gdb_compile "${srcdir}/${subdir}/${srcfile3}" "${objfile3}" object {additional_flags=-gstabs quiet}] != "" } {
     return -1
 }
 
index c7a8c5b1738b63bf206c6807fd7c8cf2505d6b88..f7231a6ee163ee9bef368875505411932219b66d 100644 (file)
@@ -39,7 +39,7 @@ proc do_test {version} {
     gdb_test "print sizeof (*e)" "= \[1-9\]*" "sizeof (*e) in test $version"
 }
 
-if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug additional_flags=-gstabs}] == 0 } {
+if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug additional_flags=-gstabs quiet}] == 0 } {
     do_test forced_stabs
 }