From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id E51CC3851164; Wed, 12 Oct 2022 15:02:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E51CC3851164 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665586946; bh=nbAhXnkIlMuo2qm6x6W2GzuHir8SHuKlO6r71jLtJD0=; h=From:To:Subject:Date:From; b=i5zrNIShYusgCSMU9ZiFqCmEQYjHlSgU9cAo0m6bJ+mSW1fiJsGWzL1U3HQzIHk3P Y7ZAfEVFhO7WjBVbUq6Nr0+CW1xRbk+VtHoi062VIuBlzF+eZp3OYtpmwmNpXaUuxl Zm/oTyjkZizGyikdCMAb80ya3FiVR8WvbiKQRHoE= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Silence warnings about obsolete -gstabs X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 3c74d321be66cb94bbdeb7da36111b46d2f4a578 X-Git-Newrev: 632ecf33a181029be7f1b7efdc687fd3dbb1a1d0 Message-Id: <20221012150226.E51CC3851164@sourceware.org> Date: Wed, 12 Oct 2022 15:02:26 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D632ecf33a181= 029be7f1b7efdc687fd3dbb1a1d0 commit 632ecf33a181029be7f1b7efdc687fd3dbb1a1d0 Author: Tom de Vries Date: Wed Oct 12 17:02:15 2022 +0200 [gdb/testsuite] Silence warnings about obsolete -gstabs =20 When running test-case gdb.base/gdbindex-stabs.exp on openSUSE Tumblewe= ed (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 ... =20 Silence the warning by passing quiet to gdb_compile. Likewise in two o= ther test-cases. Diff: --- gdb/testsuite/gdb.base/gdbindex-stabs.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-ranges.exp | 2 +- gdb/testsuite/gdb.stabs/gdb11479.exp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/gdb.base/gdbindex-stabs.exp b/gdb/testsuite/gdb.= base/gdbindex-stabs.exp index 955666d6323..2df8fe9fe44 100644 --- a/gdb/testsuite/gdb.base/gdbindex-stabs.exp +++ b/gdb/testsuite/gdb.base/gdbindex-stabs.exp @@ -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] =20 -if {[gdb_compile "${srcdir}/${subdir}/${srcfile_stabs}" ${objfile_stabs} o= bject {additional_flags=3D-gstabs}] !=3D "" +if {[gdb_compile "${srcdir}/${subdir}/${srcfile_stabs}" ${objfile_stabs} o= bject {additional_flags=3D-gstabs quiet}] !=3D "" || [gdb_compile "${srcdir}/${subdir}/${srcfile_dwarf}" ${objfile_dwarf= } object {additional_flags=3D-gdwarf-2}] !=3D "" || [gdb_compile "${objfile_stabs} ${objfile_dwarf}" ${binfile} executa= ble {nodebug}] !=3D ""} { untested "failed to compile" diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp b/gdb/testsuite/gdb.dw= arf2/dw2-ranges.exp index e2d6d75044c..b7b3223b587 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges.exp @@ -51,7 +51,7 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${asm= file2}" assembly {}] !=3D # 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 {a= dditional_flags=3D-gstabs}] !=3D "" } { +if {[gdb_compile "${srcdir}/${subdir}/${srcfile3}" "${objfile3}" object {a= dditional_flags=3D-gstabs quiet}] !=3D "" } { return -1 } =20 diff --git a/gdb/testsuite/gdb.stabs/gdb11479.exp b/gdb/testsuite/gdb.stabs= /gdb11479.exp index c7a8c5b1738..f7231a6ee16 100644 --- a/gdb/testsuite/gdb.stabs/gdb11479.exp +++ b/gdb/testsuite/gdb.stabs/gdb11479.exp @@ -39,7 +39,7 @@ proc do_test {version} { gdb_test "print sizeof (*e)" "=3D \[1-9\]*" "sizeof (*e) in test $vers= ion" } =20 -if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug= additional_flags=3D-gstabs}] =3D=3D 0 } { +if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug= additional_flags=3D-gstabs quiet}] =3D=3D 0 } { do_test forced_stabs }