From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 612063858C39; Fri, 13 Jan 2023 20:38:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 612063858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673642325; bh=/k29EzBwdwvk+KXLsr/bcx23eSDXHZhPEcDh+sqzuOY=; h=From:To:Subject:Date:From; b=mvcf6rUty8OiHC375zJls0P1wj0jPthzHpuDUtVP6CCgjuju4Q56z7L536B9eqcBd NHxv5BPol5Y3trM3D5jXHmG6GJ5mezV1J8iubOEE+aa7oaZnDgMnGKbB1aPjrUQHHe XKXzFxDdyVo2bCLdeTkYpVGP2YDlkM4QBdVW9zYk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Rename to allow_cplus_tests and allow_stl_tests X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 1ed844ca1e581f80b3ecdcc99a8dab11034e684d X-Git-Newrev: 0b94d2b9aa06bcb6d1141e61d36c3a99620861fe Message-Id: <20230113203845.612063858C39@sourceware.org> Date: Fri, 13 Jan 2023 20:38:45 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D0b94d2b9aa06= bcb6d1141e61d36c3a99620861fe commit 0b94d2b9aa06bcb6d1141e61d36c3a99620861fe Author: Tom Tromey Date: Sun Jan 8 10:47:09 2023 -0700 Rename to allow_cplus_tests and allow_stl_tests =20 This changes skip_cplus_tests to invert the sense, and renames it to allow_cplus_tests. This one also converts skip_stl_tests to allow_stl_tests, as that was convenient to do at the same time. Diff: --- .../gdb.base/advance-until-multiple-locations.exp | 2 +- gdb/testsuite/gdb.base/align-c++.exp | 2 +- .../gdb.base/break-on-linker-gcd-function.exp | 2 +- gdb/testsuite/gdb.base/infcall-nested-structs-c++.exp | 2 +- gdb/testsuite/gdb.base/info-types-c++.exp | 2 +- gdb/testsuite/gdb.base/max-depth-c++.exp | 2 +- gdb/testsuite/gdb.base/print-file-var.exp | 7 +++---- gdb/testsuite/gdb.base/prologue.exp | 2 +- gdb/testsuite/gdb.base/psymtab.exp | 2 +- gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp | 2 +- .../gdb.compile/compile-cplus-array-decay.exp | 2 +- gdb/testsuite/gdb.compile/compile-cplus-inherit.exp | 2 +- gdb/testsuite/gdb.compile/compile-cplus-member.exp | 2 +- gdb/testsuite/gdb.compile/compile-cplus-method.exp | 2 +- gdb/testsuite/gdb.compile/compile-cplus-namespace.exp | 2 +- gdb/testsuite/gdb.compile/compile-cplus-nested.exp | 2 +- gdb/testsuite/gdb.compile/compile-cplus-virtual.exp | 2 +- gdb/testsuite/gdb.cp/align.exp | 2 +- gdb/testsuite/gdb.cp/ambiguous.exp | 2 +- gdb/testsuite/gdb.cp/annota2.exp | 2 +- gdb/testsuite/gdb.cp/annota3.exp | 2 +- gdb/testsuite/gdb.cp/anon-ns.exp | 2 +- gdb/testsuite/gdb.cp/anon-union.exp | 2 +- gdb/testsuite/gdb.cp/arg-reference.exp | 2 +- gdb/testsuite/gdb.cp/array-indices.exp | 2 +- gdb/testsuite/gdb.cp/array-repeat.exp | 2 +- gdb/testsuite/gdb.cp/bool.exp | 2 +- gdb/testsuite/gdb.cp/break-f-std-string.exp | 2 +- gdb/testsuite/gdb.cp/breakpoint-locs.exp | 2 +- gdb/testsuite/gdb.cp/breakpoint.exp | 2 +- gdb/testsuite/gdb.cp/bs15503.exp | 2 +- gdb/testsuite/gdb.cp/call-c.exp | 2 +- gdb/testsuite/gdb.cp/call-method-register.exp | 2 +- gdb/testsuite/gdb.cp/casts.exp | 2 +- gdb/testsuite/gdb.cp/chained-calls.exp | 2 +- gdb/testsuite/gdb.cp/class2.exp | 2 +- gdb/testsuite/gdb.cp/classes.exp | 2 +- gdb/testsuite/gdb.cp/cmpd-minsyms.exp | 2 +- gdb/testsuite/gdb.cp/constexpr-field.exp | 2 +- gdb/testsuite/gdb.cp/cp-relocate.exp | 2 +- gdb/testsuite/gdb.cp/cpcompletion.exp | 2 +- gdb/testsuite/gdb.cp/cpexprs.exp.tcl | 2 +- gdb/testsuite/gdb.cp/cplabel.exp | 2 +- gdb/testsuite/gdb.cp/cplusfuncs.exp | 2 +- gdb/testsuite/gdb.cp/cpsizeof.exp | 2 +- gdb/testsuite/gdb.cp/ctti.exp | 2 +- gdb/testsuite/gdb.cp/debug-expr.exp | 2 +- gdb/testsuite/gdb.cp/demangle.exp | 2 +- gdb/testsuite/gdb.cp/derivation.exp | 2 +- gdb/testsuite/gdb.cp/disasm-func-name.exp | 2 +- gdb/testsuite/gdb.cp/dispcxx.exp | 2 +- gdb/testsuite/gdb.cp/ena-dis-br-range.exp | 2 +- gdb/testsuite/gdb.cp/enum-class.exp | 2 +- gdb/testsuite/gdb.cp/exception.exp | 2 +- gdb/testsuite/gdb.cp/exceptprint.exp | 2 +- gdb/testsuite/gdb.cp/expand-sals.exp | 2 +- gdb/testsuite/gdb.cp/extern-c.exp | 2 +- gdb/testsuite/gdb.cp/filename.exp | 2 +- gdb/testsuite/gdb.cp/formatted-ref.exp | 2 +- gdb/testsuite/gdb.cp/gdb1355.exp | 2 +- gdb/testsuite/gdb.cp/gdb2384.exp | 2 +- gdb/testsuite/gdb.cp/gdb2495.exp | 2 +- gdb/testsuite/gdb.cp/hang.exp | 2 +- gdb/testsuite/gdb.cp/impl-this.exp | 2 +- gdb/testsuite/gdb.cp/incomplete-type-overload.exp | 2 +- gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp | 2 +- gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp | 2 +- gdb/testsuite/gdb.cp/inherit.exp | 2 +- gdb/testsuite/gdb.cp/iostream.exp | 2 +- gdb/testsuite/gdb.cp/local-static.exp | 2 +- gdb/testsuite/gdb.cp/local.exp | 2 +- gdb/testsuite/gdb.cp/m-data.exp | 2 +- gdb/testsuite/gdb.cp/m-static.exp | 2 +- gdb/testsuite/gdb.cp/many-args.exp | 2 +- gdb/testsuite/gdb.cp/mb-ctor.exp | 2 +- gdb/testsuite/gdb.cp/mb-inline.exp | 2 +- gdb/testsuite/gdb.cp/mb-templates.exp | 2 +- gdb/testsuite/gdb.cp/member-name.exp | 2 +- gdb/testsuite/gdb.cp/member-ptr.exp | 2 +- gdb/testsuite/gdb.cp/meth-typedefs.exp | 2 +- gdb/testsuite/gdb.cp/method.exp | 2 +- gdb/testsuite/gdb.cp/method2.exp | 2 +- gdb/testsuite/gdb.cp/misc.exp | 2 +- gdb/testsuite/gdb.cp/namelessclass.exp | 2 +- gdb/testsuite/gdb.cp/namespace.exp | 2 +- gdb/testsuite/gdb.cp/nested-class-func-class.exp | 2 +- gdb/testsuite/gdb.cp/nested-types.exp | 2 +- gdb/testsuite/gdb.cp/nextoverthrow.exp | 2 +- gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp | 2 +- gdb/testsuite/gdb.cp/non-trivial-retval.exp | 2 +- gdb/testsuite/gdb.cp/nsalias.exp | 2 +- gdb/testsuite/gdb.cp/overload-const.exp | 2 +- gdb/testsuite/gdb.cp/overload.exp | 2 +- gdb/testsuite/gdb.cp/ovldbreak.exp | 2 +- gdb/testsuite/gdb.cp/ovsrch.exp | 2 +- gdb/testsuite/gdb.cp/pass-by-ref-2.exp | 2 +- gdb/testsuite/gdb.cp/pass-by-ref.exp | 2 +- gdb/testsuite/gdb.cp/pointer-to-member.exp | 2 +- gdb/testsuite/gdb.cp/pr-1023.exp | 2 +- gdb/testsuite/gdb.cp/pr-1210.exp | 2 +- gdb/testsuite/gdb.cp/pr-574.exp | 2 +- gdb/testsuite/gdb.cp/pr10728.exp | 2 +- gdb/testsuite/gdb.cp/pr17132.exp | 2 +- gdb/testsuite/gdb.cp/pr17494.exp | 2 +- gdb/testsuite/gdb.cp/pr9067.exp | 2 +- gdb/testsuite/gdb.cp/pr9631.exp | 2 +- gdb/testsuite/gdb.cp/print-demangle.exp | 2 +- gdb/testsuite/gdb.cp/print-method-args.exp | 2 +- gdb/testsuite/gdb.cp/printmethod.exp | 2 +- gdb/testsuite/gdb.cp/psmang.exp | 2 +- gdb/testsuite/gdb.cp/psymtab-parameter.exp | 2 +- gdb/testsuite/gdb.cp/ptype-cv-cp.exp | 2 +- gdb/testsuite/gdb.cp/ptype-flags.exp | 2 +- gdb/testsuite/gdb.cp/punctuator.exp | 2 +- gdb/testsuite/gdb.cp/re-set-overloaded.exp | 2 +- gdb/testsuite/gdb.cp/ref-params.exp | 2 +- gdb/testsuite/gdb.cp/ref-types.exp | 2 +- gdb/testsuite/gdb.cp/rtti.exp | 2 +- gdb/testsuite/gdb.cp/rvalue-ref-casts.exp | 2 +- gdb/testsuite/gdb.cp/rvalue-ref-overload.exp | 2 +- gdb/testsuite/gdb.cp/rvalue-ref-params.exp | 2 +- gdb/testsuite/gdb.cp/rvalue-ref-sizeof.exp | 2 +- gdb/testsuite/gdb.cp/rvalue-ref-types.exp | 2 +- gdb/testsuite/gdb.cp/scope-err.exp | 2 +- gdb/testsuite/gdb.cp/static-method.exp | 2 +- gdb/testsuite/gdb.cp/static-print-quit.exp | 2 +- gdb/testsuite/gdb.cp/static-typedef-print.exp | 2 +- gdb/testsuite/gdb.cp/stub-array-size.exp | 2 +- gdb/testsuite/gdb.cp/subtypes.exp | 2 +- gdb/testsuite/gdb.cp/temargs.exp | 2 +- gdb/testsuite/gdb.cp/templates.exp | 2 +- gdb/testsuite/gdb.cp/try_catch.exp | 2 +- gdb/testsuite/gdb.cp/typed-enum.exp | 2 +- gdb/testsuite/gdb.cp/typedef-base.exp | 2 +- gdb/testsuite/gdb.cp/typedef-operator.exp | 2 +- gdb/testsuite/gdb.cp/typeid.exp | 2 +- gdb/testsuite/gdb.cp/userdef.exp | 2 +- gdb/testsuite/gdb.cp/var-tag.exp | 2 +- gdb/testsuite/gdb.cp/virtbase.exp | 2 +- gdb/testsuite/gdb.cp/virtbase2.exp | 2 +- gdb/testsuite/gdb.cp/virtfunc.exp | 2 +- gdb/testsuite/gdb.cp/virtfunc2.exp | 2 +- gdb/testsuite/gdb.cp/watch-cp.exp | 2 +- gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp | 2 +- .../gdb.dwarf2/dw2-cp-infcall-ref-static.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp | 2 +- gdb/testsuite/gdb.dwarf2/implptrconst.exp | 2 +- gdb/testsuite/gdb.dwarf2/implptrpiece.exp | 2 +- gdb/testsuite/gdb.dwarf2/implref-array.exp | 2 +- gdb/testsuite/gdb.dwarf2/implref-const.exp | 2 +- gdb/testsuite/gdb.dwarf2/implref-global.exp | 2 +- gdb/testsuite/gdb.dwarf2/implref-struct.exp | 2 +- gdb/testsuite/gdb.dwarf2/imported-unit.exp | 2 +- gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp | 2 +- gdb/testsuite/gdb.dwarf2/method-ptr.exp | 2 +- gdb/testsuite/gdb.dwarf2/missing-sig-type.exp | 2 +- gdb/testsuite/gdb.dwarf2/nostaticblock.exp | 2 +- gdb/testsuite/gdb.dwarf2/nullptr_t.exp | 2 +- gdb/testsuite/gdb.dwarf2/staticvirtual.exp | 2 +- gdb/testsuite/gdb.dwarf2/subrange.exp | 2 +- gdb/testsuite/gdb.guile/scm-value-cc.exp | 2 +- gdb/testsuite/gdb.guile/scm-value.exp | 2 +- gdb/testsuite/gdb.linespec/break-ask.exp | 2 +- gdb/testsuite/gdb.linespec/cpexplicit.exp | 2 +- gdb/testsuite/gdb.linespec/linespec.exp | 2 +- gdb/testsuite/gdb.linespec/ls-dollar.exp | 2 +- gdb/testsuite/gdb.linespec/ls-errs.exp | 2 +- gdb/testsuite/gdb.linespec/skip-two.exp | 2 +- gdb/testsuite/gdb.mi/gdb792.exp | 2 +- gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp | 2 +- gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp | 2 +- gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp | 2 +- gdb/testsuite/gdb.mi/mi-var-cp.exp | 2 +- gdb/testsuite/gdb.mi/mi-var-rtti.exp | 2 +- gdb/testsuite/gdb.python/py-explore-cc.exp | 2 +- gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp | 2 +- gdb/testsuite/gdb.python/py-template.exp | 2 +- gdb/testsuite/gdb.python/py-typeprint.exp | 2 +- gdb/testsuite/gdb.python/py-value-cc.exp | 2 +- gdb/testsuite/gdb.python/py-value.exp | 2 +- gdb/testsuite/gdb.python/py-xmethods.exp | 2 +- gdb/testsuite/lib/gdb.exp | 19 +++++++++------= ---- 183 files changed, 193 insertions(+), 195 deletions(-) diff --git a/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp b/= gdb/testsuite/gdb.base/advance-until-multiple-locations.exp index ef60fc67951..687f5a69707 100644 --- a/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp +++ b/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp @@ -18,7 +18,7 @@ =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ {debug c++}] } { diff --git a/gdb/testsuite/gdb.base/align-c++.exp b/gdb/testsuite/gdb.base/= align-c++.exp index cb9504ab546..4caf1f94348 100644 --- a/gdb/testsuite/gdb.base/align-c++.exp +++ b/gdb/testsuite/gdb.base/align-c++.exp @@ -19,7 +19,7 @@ # compiler. =20 # Only test C++ if we are able. -require !skip_cplus_tests +require allow_cplus_tests set lang c++ =20 source $srcdir/$subdir/align.exp.tcl diff --git a/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp b/gdb/= testsuite/gdb.base/break-on-linker-gcd-function.exp index a4d168db0fa..60ee2b59629 100644 --- a/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp +++ b/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp @@ -23,7 +23,7 @@ # # test running programs # -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.base/infcall-nested-structs-c++.exp b/gdb/te= stsuite/gdb.base/infcall-nested-structs-c++.exp index 9b0be13f3f7..35cfe526a92 100644 --- a/gdb/testsuite/gdb.base/infcall-nested-structs-c++.exp +++ b/gdb/testsuite/gdb.base/infcall-nested-structs-c++.exp @@ -16,7 +16,7 @@ # along with this program. If not, see . =20 # Only test C++ if we are able. -require !skip_cplus_tests +require allow_cplus_tests set lang c++ =20 source $srcdir/$subdir/infcall-nested-structs.exp.tcl diff --git a/gdb/testsuite/gdb.base/info-types-c++.exp b/gdb/testsuite/gdb.= base/info-types-c++.exp index 4b1049b3e59..cf716c27a7e 100644 --- a/gdb/testsuite/gdb.base/info-types-c++.exp +++ b/gdb/testsuite/gdb.base/info-types-c++.exp @@ -14,7 +14,7 @@ # along with this program. If not, see . =20 # Only test C++ if we are able. -require !skip_cplus_tests +require allow_cplus_tests set lang c++ =20 source $srcdir/$subdir/info-types.exp.tcl diff --git a/gdb/testsuite/gdb.base/max-depth-c++.exp b/gdb/testsuite/gdb.b= ase/max-depth-c++.exp index a959b81b639..5643867ed79 100644 --- a/gdb/testsuite/gdb.base/max-depth-c++.exp +++ b/gdb/testsuite/gdb.base/max-depth-c++.exp @@ -14,7 +14,7 @@ # along with this program. If not, see . =20 # Only test C++ if we are able. -require !skip_cplus_tests +require allow_cplus_tests set lang c++ =20 source $srcdir/$subdir/max-depth.exp.tcl diff --git a/gdb/testsuite/gdb.base/print-file-var.exp b/gdb/testsuite/gdb.= base/print-file-var.exp index 00105a8f5cd..936ab2a17e3 100644 --- a/gdb/testsuite/gdb.base/print-file-var.exp +++ b/gdb/testsuite/gdb.base/print-file-var.exp @@ -139,10 +139,9 @@ proc test {hidden dlopen version_id_main lang} { } =20 # Only test C++ if we are able. Always use C. -if { [skip_cplus_tests] } { - set lang_list {c} -} else { - set lang_list {c c++} +set lang_list {c} +if {[allow_cplus_tests]} { + lappend lang_list c++ } =20 foreach_with_prefix lang $lang_list { diff --git a/gdb/testsuite/gdb.base/prologue.exp b/gdb/testsuite/gdb.base/p= rologue.exp index adee2573cee..c60edb72188 100644 --- a/gdb/testsuite/gdb.base/prologue.exp +++ b/gdb/testsuite/gdb.base/prologue.exp @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .c =20 diff --git a/gdb/testsuite/gdb.base/psymtab.exp b/gdb/testsuite/gdb.base/ps= ymtab.exp index 99f233ffb6b..2674f5523c4 100644 --- a/gdb/testsuite/gdb.base/psymtab.exp +++ b/gdb/testsuite/gdb.base/psymtab.exp @@ -24,7 +24,7 @@ # =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile psymtab1.c psymtab2.c =20 diff --git a/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp b/gdb/te= stsuite/gdb.compile/compile-cplus-anonymous.exp index 912deabd9b7..26cfab50914 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp @@ -19,7 +19,7 @@ load_lib compile-support.exp =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { diff --git a/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp b/gdb/= testsuite/gdb.compile/compile-cplus-array-decay.exp index a1baccdbc5b..05962208e2e 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp @@ -19,7 +19,7 @@ load_lib compile-support.exp =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++ additional_flags=3D-std=3Dc++11}]} { diff --git a/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp b/gdb/test= suite/gdb.compile/compile-cplus-inherit.exp index 78501c6a5f4..a6cfeb6fe5a 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-inherit.exp @@ -19,7 +19,7 @@ load_lib compile-support.exp =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { diff --git a/gdb/testsuite/gdb.compile/compile-cplus-member.exp b/gdb/tests= uite/gdb.compile/compile-cplus-member.exp index 356d39f5008..da9418edf53 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-member.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-member.exp @@ -19,7 +19,7 @@ load_lib compile-support.exp =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { diff --git a/gdb/testsuite/gdb.compile/compile-cplus-method.exp b/gdb/tests= uite/gdb.compile/compile-cplus-method.exp index 8261a14ac8f..994e00d48c4 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-method.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-method.exp @@ -19,7 +19,7 @@ load_lib compile-support.exp =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { diff --git a/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp b/gdb/te= stsuite/gdb.compile/compile-cplus-namespace.exp index ffc13332809..65cc3ac51c3 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-namespace.exp @@ -19,7 +19,7 @@ load_lib compile-support.exp =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { diff --git a/gdb/testsuite/gdb.compile/compile-cplus-nested.exp b/gdb/tests= uite/gdb.compile/compile-cplus-nested.exp index c827dcebe54..86fddb324aa 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-nested.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-nested.exp @@ -19,7 +19,7 @@ load_lib compile-support.exp =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { diff --git a/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp b/gdb/test= suite/gdb.compile/compile-cplus-virtual.exp index 33fec029257..f50e385ff73 100644 --- a/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp +++ b/gdb/testsuite/gdb.compile/compile-cplus-virtual.exp @@ -19,7 +19,7 @@ load_lib compile-support.exp =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing $testfile $testfile $srcfile \ {debug nowarnings c++}]} { diff --git a/gdb/testsuite/gdb.cp/align.exp b/gdb/testsuite/gdb.cp/align.exp index b75024dec6b..b2130e067e0 100644 --- a/gdb/testsuite/gdb.cp/align.exp +++ b/gdb/testsuite/gdb.cp/align.exp @@ -18,7 +18,7 @@ # This tests that C++ alignof works in gdb, and that it agrees with # the compiler. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # The types we're going to test. =20 diff --git a/gdb/testsuite/gdb.cp/ambiguous.exp b/gdb/testsuite/gdb.cp/ambi= guous.exp index e132e73d80b..a8f19e1d114 100644 --- a/gdb/testsuite/gdb.cp/ambiguous.exp +++ b/gdb/testsuite/gdb.cp/ambiguous.exp @@ -19,7 +19,7 @@ # about the field or baseclass being ambiguous is emitted at the right # times. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/annota2.exp b/gdb/testsuite/gdb.cp/annota= 2.exp index 5116355049f..64adbbdb220 100644 --- a/gdb/testsuite/gdb.cp/annota2.exp +++ b/gdb/testsuite/gdb.cp/annota2.exp @@ -20,7 +20,7 @@ # test running programs # =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/annota3.exp b/gdb/testsuite/gdb.cp/annota= 3.exp index 5d8c152d33d..788bda77f3d 100644 --- a/gdb/testsuite/gdb.cp/annota3.exp +++ b/gdb/testsuite/gdb.cp/annota3.exp @@ -20,7 +20,7 @@ # test running programs # =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/anon-ns.exp b/gdb/testsuite/gdb.cp/anon-n= s.exp index d9017533a44..35bef8d8267 100644 --- a/gdb/testsuite/gdb.cp/anon-ns.exp +++ b/gdb/testsuite/gdb.cp/anon-ns.exp @@ -17,7 +17,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc anon-ns2.cc =20 diff --git a/gdb/testsuite/gdb.cp/anon-union.exp b/gdb/testsuite/gdb.cp/ano= n-union.exp index f5ec03d49ec..751867f7d49 100644 --- a/gdb/testsuite/gdb.cp/anon-union.exp +++ b/gdb/testsuite/gdb.cp/anon-union.exp @@ -23,7 +23,7 @@ # =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/arg-reference.exp b/gdb/testsuite/gdb.cp/= arg-reference.exp index 21a89bde85f..76b4ae82c09 100644 --- a/gdb/testsuite/gdb.cp/arg-reference.exp +++ b/gdb/testsuite/gdb.cp/arg-reference.exp @@ -21,7 +21,7 @@ # Test G++ has compiled debuginfo without a C++ '&' reference where it sho= uld # not be. GCC Bug 33537. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 =20 standard_testfile .cc diff --git a/gdb/testsuite/gdb.cp/array-indices.exp b/gdb/testsuite/gdb.cp/= array-indices.exp index 8f88f947549..ff3b1aa5ec9 100644 --- a/gdb/testsuite/gdb.cp/array-indices.exp +++ b/gdb/testsuite/gdb.cp/array-indices.exp @@ -15,7 +15,7 @@ =20 # Test the printing of element indices in C++ arrays. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 set lang c++ =20 diff --git a/gdb/testsuite/gdb.cp/array-repeat.exp b/gdb/testsuite/gdb.cp/a= rray-repeat.exp index 8c71149c922..10fbdde6bdd 100644 --- a/gdb/testsuite/gdb.cp/array-repeat.exp +++ b/gdb/testsuite/gdb.cp/array-repeat.exp @@ -15,7 +15,7 @@ =20 # Test the detection and printing of repeated elements in C++ arrays. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 set lang c++ =20 diff --git a/gdb/testsuite/gdb.cp/bool.exp b/gdb/testsuite/gdb.cp/bool.exp index 27f35322035..08b68392005 100644 --- a/gdb/testsuite/gdb.cp/bool.exp +++ b/gdb/testsuite/gdb.cp/bool.exp @@ -20,7 +20,7 @@ =20 # Test returning bool. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 =20 standard_testfile .cc diff --git a/gdb/testsuite/gdb.cp/break-f-std-string.exp b/gdb/testsuite/gd= b.cp/break-f-std-string.exp index 57006f059b8..334955db843 100644 --- a/gdb/testsuite/gdb.cp/break-f-std-string.exp +++ b/gdb/testsuite/gdb.cp/break-f-std-string.exp @@ -58,7 +58,7 @@ =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # CXX11_ABI specifies the value to define _GLIBCXX_USE_CXX11_ABI as. =20 diff --git a/gdb/testsuite/gdb.cp/breakpoint-locs.exp b/gdb/testsuite/gdb.c= p/breakpoint-locs.exp index af1711ccbdb..0d1ad68f9f5 100644 --- a/gdb/testsuite/gdb.cp/breakpoint-locs.exp +++ b/gdb/testsuite/gdb.cp/breakpoint-locs.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc breakpoint-locs-2.cc =20 diff --git a/gdb/testsuite/gdb.cp/breakpoint.exp b/gdb/testsuite/gdb.cp/bre= akpoint.exp index 46762fc8b1c..7a244c7bdf8 100644 --- a/gdb/testsuite/gdb.cp/breakpoint.exp +++ b/gdb/testsuite/gdb.cp/breakpoint.exp @@ -17,7 +17,7 @@ =20 # This contains tests for breakpoints in C++. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/bs15503.exp b/gdb/testsuite/gdb.cp/bs1550= 3.exp index 870d36d29b4..29118629d24 100644 --- a/gdb/testsuite/gdb.cp/bs15503.exp +++ b/gdb/testsuite/gdb.cp/bs15503.exp @@ -17,7 +17,7 @@ # This file was written by Sue Kimura (sue_kimura@hp.com) # Rewritten by Michael Chastain (mec.gnu@mindspring.com) =20 -require !skip_stl_tests +require allow_stl_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/call-c.exp b/gdb/testsuite/gdb.cp/call-c.= exp index 9fdbd00537e..b20bc8698ca 100644 --- a/gdb/testsuite/gdb.cp/call-c.exp +++ b/gdb/testsuite/gdb.cp/call-c.exp @@ -14,7 +14,7 @@ # along with this program. If not, see . =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc call-c-1.c set objfilec [standard_output_file ${testfile}-1.o] diff --git a/gdb/testsuite/gdb.cp/call-method-register.exp b/gdb/testsuite/= gdb.cp/call-method-register.exp index 6f0f5214fe3..ea65e09c82c 100644 --- a/gdb/testsuite/gdb.cp/call-method-register.exp +++ b/gdb/testsuite/gdb.cp/call-method-register.exp @@ -16,7 +16,7 @@ # Test callling a method on a variable that has been put in a # register. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" load_lib dwarf.exp diff --git a/gdb/testsuite/gdb.cp/casts.exp b/gdb/testsuite/gdb.cp/casts.exp index 35305d75ff1..ac798f9070f 100644 --- a/gdb/testsuite/gdb.cp/casts.exp +++ b/gdb/testsuite/gdb.cp/casts.exp @@ -25,7 +25,7 @@ # =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc casts03.cc =20 diff --git a/gdb/testsuite/gdb.cp/chained-calls.exp b/gdb/testsuite/gdb.cp/= chained-calls.exp index f147b365776..d766afc66df 100644 --- a/gdb/testsuite/gdb.cp/chained-calls.exp +++ b/gdb/testsuite/gdb.cp/chained-calls.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/class2.exp b/gdb/testsuite/gdb.cp/class2.= exp index ea7cdf16a04..0a3448f3705 100644 --- a/gdb/testsuite/gdb.cp/class2.exp +++ b/gdb/testsuite/gdb.cp/class2.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 =20 standard_testfile .cc diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classe= s.exp index de7fa2eb14b..4b1b01df383 100644 --- a/gdb/testsuite/gdb.cp/classes.exp +++ b/gdb/testsuite/gdb.cp/classes.exp @@ -18,7 +18,7 @@ =20 set nl "\[\r\n\]+" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/cmpd-minsyms.exp b/gdb/testsuite/gdb.cp/c= mpd-minsyms.exp index 70779cecfa4..d54d2986c7a 100644 --- a/gdb/testsuite/gdb.cp/cmpd-minsyms.exp +++ b/gdb/testsuite/gdb.cp/cmpd-minsyms.exp @@ -17,7 +17,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # Tests for c++/12273, breakpoint/12803 standard_testfile .cc diff --git a/gdb/testsuite/gdb.cp/constexpr-field.exp b/gdb/testsuite/gdb.c= p/constexpr-field.exp index 387636fd45c..18dcb0e91b7 100644 --- a/gdb/testsuite/gdb.cp/constexpr-field.exp +++ b/gdb/testsuite/gdb.cp/constexpr-field.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/cp-relocate.exp b/gdb/testsuite/gdb.cp/cp= -relocate.exp index 3846aa2aebc..5e70f9d30d3 100644 --- a/gdb/testsuite/gdb.cp/cp-relocate.exp +++ b/gdb/testsuite/gdb.cp/cp-relocate.exp @@ -18,7 +18,7 @@ standard_testfile .cc append binfile .o =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {c+= + debug}] !=3D "" } { untested "failed to compile" diff --git a/gdb/testsuite/gdb.cp/cpcompletion.exp b/gdb/testsuite/gdb.cp/c= pcompletion.exp index 9d93d598430..82a7ffb6fb4 100644 --- a/gdb/testsuite/gdb.cp/cpcompletion.exp +++ b/gdb/testsuite/gdb.cp/cpcompletion.exp @@ -51,7 +51,7 @@ proc test_class_complete {class expr name matches} { } } =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile pr9594.cc =20 diff --git a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl b/gdb/testsuite/gdb.cp/cp= exprs.exp.tcl index 368ea25d34e..3df149bf6a3 100644 --- a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl +++ b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl @@ -678,7 +678,7 @@ add {policyd5::function} \ {operation_1::function} =20 # Start the test -if {[skip_cplus_tests]} { continue } +if {![allow_cplus_tests]} { continue } =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/cplabel.exp b/gdb/testsuite/gdb.cp/cplabe= l.exp index c29b47cdf4c..3a5a3c870cf 100644 --- a/gdb/testsuite/gdb.cp/cplabel.exp +++ b/gdb/testsuite/gdb.cp/cplabel.exp @@ -15,7 +15,7 @@ =20 # Tests for breakpoint on labels in methods. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cpl= usfuncs.exp index f197e1148e7..9ca5834a9ba 100644 --- a/gdb/testsuite/gdb.cp/cplusfuncs.exp +++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp @@ -16,7 +16,7 @@ # This file was written by Fred Fish. (fnf@cygnus.com) # Adapted for g++ 3.0 ABI by Michael Chastain. (chastain@redhat.com) =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/cpsizeof.exp b/gdb/testsuite/gdb.cp/cpsiz= eof.exp index d235528878b..44fd9262869 100644 --- a/gdb/testsuite/gdb.cp/cpsizeof.exp +++ b/gdb/testsuite/gdb.cp/cpsizeof.exp @@ -16,7 +16,7 @@ =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++= }] } { return -1 diff --git a/gdb/testsuite/gdb.cp/ctti.exp b/gdb/testsuite/gdb.cp/ctti.exp index a7cb9885258..0c02085cec6 100644 --- a/gdb/testsuite/gdb.cp/ctti.exp +++ b/gdb/testsuite/gdb.cp/ctti.exp @@ -21,7 +21,7 @@ =20 # Call to template instantiations. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile cttiadd.cc cttiadd1.cc cttiadd2.cc cttiadd3.cc =20 diff --git a/gdb/testsuite/gdb.cp/debug-expr.exp b/gdb/testsuite/gdb.cp/deb= ug-expr.exp index 300818e1d87..f6466a4bc5d 100644 --- a/gdb/testsuite/gdb.cp/debug-expr.exp +++ b/gdb/testsuite/gdb.cp/debug-expr.exp @@ -15,7 +15,7 @@ =20 # Test "set debug expr 1" on c++ expressions. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 gdb_start gdb_test_no_output "set language c++" diff --git a/gdb/testsuite/gdb.cp/demangle.exp b/gdb/testsuite/gdb.cp/deman= gle.exp index 28a0fe85ee1..f7177e292d7 100644 --- a/gdb/testsuite/gdb.cp/demangle.exp +++ b/gdb/testsuite/gdb.cp/demangle.exp @@ -15,7 +15,7 @@ =20 # This file was written by Fred Fish. (fnf@cygnus.com) =20 -require !skip_cplus_tests +require allow_cplus_tests =20 ### The demangling style we last sent to GDB. set current_demangling_style none diff --git a/gdb/testsuite/gdb.cp/derivation.exp b/gdb/testsuite/gdb.cp/der= ivation.exp index bb482e69e9f..ea7cdf2920f 100644 --- a/gdb/testsuite/gdb.cp/derivation.exp +++ b/gdb/testsuite/gdb.cp/derivation.exp @@ -28,7 +28,7 @@ set nl "\[\r\n\]+" # Start program. =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/disasm-func-name.exp b/gdb/testsuite/gdb.= cp/disasm-func-name.exp index 3b8773fbf74..bbb024d0f68 100644 --- a/gdb/testsuite/gdb.cp/disasm-func-name.exp +++ b/gdb/testsuite/gdb.cp/disasm-func-name.exp @@ -18,7 +18,7 @@ # Test that the disassembler correctly demangles C++ function names in # it's header line. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/dispcxx.exp b/gdb/testsuite/gdb.cp/dispcx= x.exp index c079b0cd6a2..91f67df2aa8 100644 --- a/gdb/testsuite/gdb.cp/dispcxx.exp +++ b/gdb/testsuite/gdb.cp/dispcxx.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp b/gdb/testsuite/gdb.= cp/ena-dis-br-range.exp index a8042c44b02..2a1b9cd60a3 100644 --- a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp +++ b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp @@ -21,7 +21,7 @@ # multiple locations and breakpoints are found in # gdb.base/ena-dis-br.exp. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/enum-class.exp b/gdb/testsuite/gdb.cp/enu= m-class.exp index badc2dc2051..c7badc4ec89 100644 --- a/gdb/testsuite/gdb.cp/enum-class.exp +++ b/gdb/testsuite/gdb.cp/enum-class.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/exception.exp b/gdb/testsuite/gdb.cp/exce= ption.exp index 3b47143277e..4308d327da3 100644 --- a/gdb/testsuite/gdb.cp/exception.exp +++ b/gdb/testsuite/gdb.cp/exception.exp @@ -33,7 +33,7 @@ set ws "\[\r\n\t \]+" set nl "\[\r\n\]+" =20 -require !skip_stl_tests +require allow_stl_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/exceptprint.exp b/gdb/testsuite/gdb.cp/ex= ceptprint.exp index 7e19d42561e..b073d63e216 100644 --- a/gdb/testsuite/gdb.cp/exceptprint.exp +++ b/gdb/testsuite/gdb.cp/exceptprint.exp @@ -15,7 +15,7 @@ =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++= }]} { return -1 diff --git a/gdb/testsuite/gdb.cp/expand-sals.exp b/gdb/testsuite/gdb.cp/ex= pand-sals.exp index deb9c94cc8e..5ddfa63ccf9 100644 --- a/gdb/testsuite/gdb.cp/expand-sals.exp +++ b/gdb/testsuite/gdb.cp/expand-sals.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 set srcfile expand-sals.cc if { [prepare_for_testing "failed to prepare" expand-sals $srcfile {debug = c++}] } { diff --git a/gdb/testsuite/gdb.cp/extern-c.exp b/gdb/testsuite/gdb.cp/exter= n-c.exp index f380e90ace8..d1df13b6341 100644 --- a/gdb/testsuite/gdb.cp/extern-c.exp +++ b/gdb/testsuite/gdb.cp/extern-c.exp @@ -15,7 +15,7 @@ =20 # Test breakpoints on extern "C" functions implemented in C++. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/filename.exp b/gdb/testsuite/gdb.cp/filen= ame.exp index f34f162456f..9b1d2b8a606 100644 --- a/gdb/testsuite/gdb.cp/filename.exp +++ b/gdb/testsuite/gdb.cp/filename.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/formatted-ref.exp b/gdb/testsuite/gdb.cp/= formatted-ref.exp index 07939637d68..f546dfa10f4 100644 --- a/gdb/testsuite/gdb.cp/formatted-ref.exp +++ b/gdb/testsuite/gdb.cp/formatted-ref.exp @@ -28,7 +28,7 @@ # operand. =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/gdb1355.exp b/gdb/testsuite/gdb.cp/gdb135= 5.exp index 1dda4c99ac9..86d314f58fa 100644 --- a/gdb/testsuite/gdb.cp/gdb1355.exp +++ b/gdb/testsuite/gdb.cp/gdb1355.exp @@ -21,7 +21,7 @@ set ws "\[\r\n\t \]*" set nl "\[\r\n\]+" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/gdb2384.exp b/gdb/testsuite/gdb.cp/gdb238= 4.exp index 6eb6292272b..3f53573180e 100644 --- a/gdb/testsuite/gdb.cp/gdb2384.exp +++ b/gdb/testsuite/gdb.cp/gdb2384.exp @@ -21,7 +21,7 @@ # # PR c++/9489. =20 -require !skip_cplus_tests !skip_shlib_tests +require allow_cplus_tests !skip_shlib_tests =20 standard_testfile .cc gdb2384-base.cc =20 diff --git a/gdb/testsuite/gdb.cp/gdb2495.exp b/gdb/testsuite/gdb.cp/gdb249= 5.exp index 5d9cedbde9f..0cb8bdd0ada 100644 --- a/gdb/testsuite/gdb.cp/gdb2495.exp +++ b/gdb/testsuite/gdb.cp/gdb2495.exp @@ -31,7 +31,7 @@ =20 # This test is largely based of gdb.base/callfuncs.exp. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if [target_info exists gdb,nosignals] { verbose "Skipping gdb2495.exp because of nosignals." diff --git a/gdb/testsuite/gdb.cp/hang.exp b/gdb/testsuite/gdb.cp/hang.exp index 95a0424d652..7d8588520ec 100644 --- a/gdb/testsuite/gdb.cp/hang.exp +++ b/gdb/testsuite/gdb.cp/hang.exp @@ -14,7 +14,7 @@ # along with this program. If not, see . =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile hang1.cc hang2.cc hang3.cc =20 diff --git a/gdb/testsuite/gdb.cp/impl-this.exp b/gdb/testsuite/gdb.cp/impl= -this.exp index 14c3cb4b331..5508cbaccbc 100644 --- a/gdb/testsuite/gdb.cp/impl-this.exp +++ b/gdb/testsuite/gdb.cp/impl-this.exp @@ -18,7 +18,7 @@ # Test expressions which assume an implicit "this" with a qualified # name. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/incomplete-type-overload.exp b/gdb/testsu= ite/gdb.cp/incomplete-type-overload.exp index 5dfd671592c..050bd98cf56 100644 --- a/gdb/testsuite/gdb.cp/incomplete-type-overload.exp +++ b/gdb/testsuite/gdb.cp/incomplete-type-overload.exp @@ -20,7 +20,7 @@ =20 load_lib dwarf.exp =20 -require dwarf2_support !skip_cplus_tests +require dwarf2_support allow_cplus_tests =20 standard_testfile .cc .S set asm_file [standard_output_file ${srcfile2}] diff --git a/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp b/gdb/testsuit= e/gdb.cp/infcall-nodebug-c++-d0.exp index 6d1d3309768..c058b55ff38 100644 --- a/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp +++ b/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d0.exp @@ -15,7 +15,7 @@ # along with this program. If not, see . =20 # Only test C++ if we are able. Always use C. -require !skip_cplus_tests +require allow_cplus_tests set lang {c++} =20 set debug nodebug diff --git a/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp b/gdb/testsuit= e/gdb.cp/infcall-nodebug-c++-d1.exp index baf05594401..dbfa8f97e49 100644 --- a/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp +++ b/gdb/testsuite/gdb.cp/infcall-nodebug-c++-d1.exp @@ -15,7 +15,7 @@ # along with this program. If not, see . =20 # Only test C++ if we are able. Always use C. -require !skip_cplus_tests +require allow_cplus_tests set lang {c++} =20 set debug debug diff --git a/gdb/testsuite/gdb.cp/inherit.exp b/gdb/testsuite/gdb.cp/inheri= t.exp index 1846125066e..2742e3e214d 100644 --- a/gdb/testsuite/gdb.cp/inherit.exp +++ b/gdb/testsuite/gdb.cp/inherit.exp @@ -20,7 +20,7 @@ set ws "\[\r\n\t \]+" set nl "\[\r\n\]+" set vhn "\\$\[0-9\]+" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/iostream.exp b/gdb/testsuite/gdb.cp/iostr= eam.exp index afd54d116f9..c603257583d 100644 --- a/gdb/testsuite/gdb.cp/iostream.exp +++ b/gdb/testsuite/gdb.cp/iostream.exp @@ -16,7 +16,7 @@ # This file is part of the gdb testsuite. # It tests various aspects of iostream that have caused problems for gdb. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/local-static.exp b/gdb/testsuite/gdb.cp/l= ocal-static.exp index 58d0d0605ae..8d967c4b293 100644 --- a/gdb/testsuite/gdb.cp/local-static.exp +++ b/gdb/testsuite/gdb.cp/local-static.exp @@ -135,7 +135,7 @@ proc do_test {lang} { set options {debug} =20 if {$lang =3D=3D "c++"} { - if { [skip_cplus_tests] } { + if { ![allow_cplus_tests] } { return } lappend options $lang diff --git a/gdb/testsuite/gdb.cp/local.exp b/gdb/testsuite/gdb.cp/local.exp index a281019bb3d..67b3eb7308d 100644 --- a/gdb/testsuite/gdb.cp/local.exp +++ b/gdb/testsuite/gdb.cp/local.exp @@ -27,7 +27,7 @@ set nl "\[\r\n\]+" # test running programs # =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/m-data.exp b/gdb/testsuite/gdb.cp/m-data.= exp index 1578b6f0ec1..c5cb7af8366 100644 --- a/gdb/testsuite/gdb.cp/m-data.exp +++ b/gdb/testsuite/gdb.cp/m-data.exp @@ -18,7 +18,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/m-static.exp b/gdb/testsuite/gdb.cp/m-sta= tic.exp index 6dbb1716a02..c57aee10160 100644 --- a/gdb/testsuite/gdb.cp/m-static.exp +++ b/gdb/testsuite/gdb.cp/m-static.exp @@ -19,7 +19,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/many-args.exp b/gdb/testsuite/gdb.cp/many= -args.exp index 2751c0064bc..7b62f3a442b 100644 --- a/gdb/testsuite/gdb.cp/many-args.exp +++ b/gdb/testsuite/gdb.cp/many-args.exp @@ -19,7 +19,7 @@ # passed in registers. This test passes so many structures it is # hoped that some will need to be placed onto the stack. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/mb-ctor.exp b/gdb/testsuite/gdb.cp/mb-cto= r.exp index 2f86c80d8fd..80a36b0b7ea 100644 --- a/gdb/testsuite/gdb.cp/mb-ctor.exp +++ b/gdb/testsuite/gdb.cp/mb-ctor.exp @@ -16,7 +16,7 @@ # Test that breakpoints on C++ constructors work, despite the # fact that gcc generates several versions of constructor function. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 =20 standard_testfile .cc diff --git a/gdb/testsuite/gdb.cp/mb-inline.exp b/gdb/testsuite/gdb.cp/mb-i= nline.exp index cf139354dd7..555827806f7 100644 --- a/gdb/testsuite/gdb.cp/mb-inline.exp +++ b/gdb/testsuite/gdb.cp/mb-inline.exp @@ -18,7 +18,7 @@ # This test verifies that setting breakpoint on line in inline # function will fire in all instantiations of that function. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile mb-inline1.cc mb-inline2.cc set hdrfile "${testfile}.h" diff --git a/gdb/testsuite/gdb.cp/mb-templates.exp b/gdb/testsuite/gdb.cp/m= b-templates.exp index 17f9e8102cd..930dde57b52 100644 --- a/gdb/testsuite/gdb.cp/mb-templates.exp +++ b/gdb/testsuite/gdb.cp/mb-templates.exp @@ -16,7 +16,7 @@ # This test verifies that setting breakpoint on line in template # function will fire in all instantiations of that template. =20 -require !skip_stl_tests +require allow_stl_tests =20 =20 standard_testfile .cc diff --git a/gdb/testsuite/gdb.cp/member-name.exp b/gdb/testsuite/gdb.cp/me= mber-name.exp index 90fa0971314..5d390845634 100644 --- a/gdb/testsuite/gdb.cp/member-name.exp +++ b/gdb/testsuite/gdb.cp/member-name.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/member-ptr.exp b/gdb/testsuite/gdb.cp/mem= ber-ptr.exp index 0807627e3bc..fc0fd0acc39 100644 --- a/gdb/testsuite/gdb.cp/member-ptr.exp +++ b/gdb/testsuite/gdb.cp/member-ptr.exp @@ -21,7 +21,7 @@ =20 set vhn "\\$\[0-9\]+" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 =20 standard_testfile .cc diff --git a/gdb/testsuite/gdb.cp/meth-typedefs.exp b/gdb/testsuite/gdb.cp/= meth-typedefs.exp index 174f89b5d68..b484545d93e 100644 --- a/gdb/testsuite/gdb.cp/meth-typedefs.exp +++ b/gdb/testsuite/gdb.cp/meth-typedefs.exp @@ -30,7 +30,7 @@ proc add {var name params expected {kind {func}}} { lappend result [list "${method_name}($params)" $expect] } =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # Tests for c++/12266 et al standard_testfile .cc diff --git a/gdb/testsuite/gdb.cp/method.exp b/gdb/testsuite/gdb.cp/method.= exp index d4bb6fbb82d..5295f736cca 100644 --- a/gdb/testsuite/gdb.cp/method.exp +++ b/gdb/testsuite/gdb.cp/method.exp @@ -32,7 +32,7 @@ # test running programs # =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/method2.exp b/gdb/testsuite/gdb.cp/method= 2.exp index 04a064bb65b..727cc1a147f 100644 --- a/gdb/testsuite/gdb.cp/method2.exp +++ b/gdb/testsuite/gdb.cp/method2.exp @@ -18,7 +18,7 @@ # This tests setting a break in an ambiguous c++ method with # current_language set to c. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/misc.exp b/gdb/testsuite/gdb.cp/misc.exp index 8f14d489c0d..3200e4ccd8a 100644 --- a/gdb/testsuite/gdb.cp/misc.exp +++ b/gdb/testsuite/gdb.cp/misc.exp @@ -15,7 +15,7 @@ =20 # This file was written by Fred Fish. (fnf@cygnus.com) =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/namelessclass.exp b/gdb/testsuite/gdb.cp/= namelessclass.exp index 6f6f7d20304..24cd6256508 100644 --- a/gdb/testsuite/gdb.cp/namelessclass.exp +++ b/gdb/testsuite/gdb.cp/namelessclass.exp @@ -20,7 +20,7 @@ load_lib dwarf.exp =20 # Do not run in environments which do not support C++. # This test can only be run on x86-like targets which support DWARF. -require dwarf2_support !skip_cplus_tests +require dwarf2_support allow_cplus_tests =20 if {![istarget "x86_64-*-*"] || ![is_lp64_target]} { return 0 diff --git a/gdb/testsuite/gdb.cp/namespace.exp b/gdb/testsuite/gdb.cp/name= space.exp index ed7943f4e69..e364816fcb7 100644 --- a/gdb/testsuite/gdb.cp/namespace.exp +++ b/gdb/testsuite/gdb.cp/namespace.exp @@ -25,7 +25,7 @@ =20 =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc namespace1.cc =20 diff --git a/gdb/testsuite/gdb.cp/nested-class-func-class.exp b/gdb/testsui= te/gdb.cp/nested-class-func-class.exp index 1b83f7b3e02..a9986c56b22 100644 --- a/gdb/testsuite/gdb.cp/nested-class-func-class.exp +++ b/gdb/testsuite/gdb.cp/nested-class-func-class.exp @@ -15,7 +15,7 @@ =20 # Regression test for type printing of private nested classes. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/nested-types.exp b/gdb/testsuite/gdb.cp/n= ested-types.exp index 889d6d7e68c..e4edae8457f 100644 --- a/gdb/testsuite/gdb.cp/nested-types.exp +++ b/gdb/testsuite/gdb.cp/nested-types.exp @@ -19,7 +19,7 @@ # the corresponding source file. It then walks the nodes of this tree # to construct input suitable for passing to cp_test_ptype_class. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/nextoverthrow.exp b/gdb/testsuite/gdb.cp/= nextoverthrow.exp index e6565addafa..b7cd11e0342 100644 --- a/gdb/testsuite/gdb.cp/nextoverthrow.exp +++ b/gdb/testsuite/gdb.cp/nextoverthrow.exp @@ -14,7 +14,7 @@ # along with this program. If not, see . =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp b/gdb/testsuite/gd= b.cp/no-libstdcxx-probe.exp index 3d7ef3a8090..b10daa638e6 100644 --- a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp +++ b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp @@ -15,7 +15,7 @@ =20 standard_testfile exceptprint.cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++= }]} { return -1 diff --git a/gdb/testsuite/gdb.cp/non-trivial-retval.exp b/gdb/testsuite/gd= b.cp/non-trivial-retval.exp index 9b8c5b1c460..0cfa9403bd9 100644 --- a/gdb/testsuite/gdb.cp/non-trivial-retval.exp +++ b/gdb/testsuite/gdb.cp/non-trivial-retval.exp @@ -17,7 +17,7 @@ =20 set additional_flags "" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/nsalias.exp b/gdb/testsuite/gdb.cp/nsalia= s.exp index 3c2f5e5703f..2727041f074 100644 --- a/gdb/testsuite/gdb.cp/nsalias.exp +++ b/gdb/testsuite/gdb.cp/nsalias.exp @@ -18,7 +18,7 @@ =20 load_lib dwarf.exp =20 -require dwarf2_support !skip_cplus_tests +require dwarf2_support allow_cplus_tests =20 standard_testfile .cc nsalias-dw.S =20 diff --git a/gdb/testsuite/gdb.cp/overload-const.exp b/gdb/testsuite/gdb.cp= /overload-const.exp index 8ed9c689a5b..4d78b8ce5f9 100644 --- a/gdb/testsuite/gdb.cp/overload-const.exp +++ b/gdb/testsuite/gdb.cp/overload-const.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/overload.exp b/gdb/testsuite/gdb.cp/overl= oad.exp index ed265fbc306..bd96d3368f5 100644 --- a/gdb/testsuite/gdb.cp/overload.exp +++ b/gdb/testsuite/gdb.cp/overload.exp @@ -24,7 +24,7 @@ set ws "\[\r\n\t \]+" set nl "\[\r\n\]+" =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/ovldbreak.exp b/gdb/testsuite/gdb.cp/ovld= break.exp index a6714995f43..62e45f50d0e 100644 --- a/gdb/testsuite/gdb.cp/ovldbreak.exp +++ b/gdb/testsuite/gdb.cp/ovldbreak.exp @@ -28,7 +28,7 @@ set timeout 15 # test running programs # =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/ovsrch.exp b/gdb/testsuite/gdb.cp/ovsrch.= exp index f13c2ee97ff..122ff26b760 100644 --- a/gdb/testsuite/gdb.cp/ovsrch.exp +++ b/gdb/testsuite/gdb.cp/ovsrch.exp @@ -52,7 +52,7 @@ proc test_class {class} { gdb_test "break ${class}::hibob if (a_param =3D=3D 3)" "Breakpoint (\[= 0-9\]).*" } =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # Test for c++/11734 standard_testfile ovsrch1.cc ovsrch2.cc ovsrch3.cc ovsrch4.cc diff --git a/gdb/testsuite/gdb.cp/pass-by-ref-2.exp b/gdb/testsuite/gdb.cp/= pass-by-ref-2.exp index 62ae6b77689..bcb11698a28 100644 --- a/gdb/testsuite/gdb.cp/pass-by-ref-2.exp +++ b/gdb/testsuite/gdb.cp/pass-by-ref-2.exp @@ -25,7 +25,7 @@ # - have inlined copy ctor # - have deleted destructor =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/pass-by-ref.exp b/gdb/testsuite/gdb.cp/pa= ss-by-ref.exp index 5424bcefc2a..e9bbac98e08 100644 --- a/gdb/testsuite/gdb.cp/pass-by-ref.exp +++ b/gdb/testsuite/gdb.cp/pass-by-ref.exp @@ -68,7 +68,7 @@ # The companion test file pass-by-ref-2.exp also contains # manually-written cases. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # The program source is generated in the output directory. # We use standard_testfile here to set convenience variables. diff --git a/gdb/testsuite/gdb.cp/pointer-to-member.exp b/gdb/testsuite/gdb= .cp/pointer-to-member.exp index b69edb1d74f..100acbf5aee 100644 --- a/gdb/testsuite/gdb.cp/pointer-to-member.exp +++ b/gdb/testsuite/gdb.cp/pointer-to-member.exp @@ -17,7 +17,7 @@ =20 # Test printing c++ pointer-to-member. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/pr-1023.exp b/gdb/testsuite/gdb.cp/pr-102= 3.exp index 3ed8f319469..6eeab8efff7 100644 --- a/gdb/testsuite/gdb.cp/pr-1023.exp +++ b/gdb/testsuite/gdb.cp/pr-1023.exp @@ -18,7 +18,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/pr-1210.exp b/gdb/testsuite/gdb.cp/pr-121= 0.exp index 021710fae68..30b9bd1eee6 100644 --- a/gdb/testsuite/gdb.cp/pr-1210.exp +++ b/gdb/testsuite/gdb.cp/pr-1210.exp @@ -17,7 +17,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/pr-574.exp b/gdb/testsuite/gdb.cp/pr-574.= exp index 2ea821011a3..4854ba20a1b 100644 --- a/gdb/testsuite/gdb.cp/pr-574.exp +++ b/gdb/testsuite/gdb.cp/pr-574.exp @@ -20,7 +20,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/pr10728.exp b/gdb/testsuite/gdb.cp/pr1072= 8.exp index 5fbbace53f6..6432ca32896 100644 --- a/gdb/testsuite/gdb.cp/pr10728.exp +++ b/gdb/testsuite/gdb.cp/pr10728.exp @@ -17,7 +17,7 @@ =20 set nl "\[\r\n\]+" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/pr17132.exp b/gdb/testsuite/gdb.cp/pr1713= 2.exp index fb9e739a547..3b717dec71a 100644 --- a/gdb/testsuite/gdb.cp/pr17132.exp +++ b/gdb/testsuite/gdb.cp/pr17132.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/pr17494.exp b/gdb/testsuite/gdb.cp/pr1749= 4.exp index 48a5c2b7a2c..75ba8410afb 100644 --- a/gdb/testsuite/gdb.cp/pr17494.exp +++ b/gdb/testsuite/gdb.cp/pr17494.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/pr9067.exp b/gdb/testsuite/gdb.cp/pr9067.= exp index cde7b20e41a..388cf00a478 100644 --- a/gdb/testsuite/gdb.cp/pr9067.exp +++ b/gdb/testsuite/gdb.cp/pr9067.exp @@ -15,7 +15,7 @@ =20 set nl "\[\r\n\]+" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/pr9631.exp b/gdb/testsuite/gdb.cp/pr9631.= exp index 3a9e0af4db3..8fd5cece6db 100644 --- a/gdb/testsuite/gdb.cp/pr9631.exp +++ b/gdb/testsuite/gdb.cp/pr9631.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/print-demangle.exp b/gdb/testsuite/gdb.cp= /print-demangle.exp index 733cd4e360a..78367125a2b 100644 --- a/gdb/testsuite/gdb.cp/print-demangle.exp +++ b/gdb/testsuite/gdb.cp/print-demangle.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile bool.cc =20 diff --git a/gdb/testsuite/gdb.cp/print-method-args.exp b/gdb/testsuite/gdb= .cp/print-method-args.exp index 8c5d5e2ef3e..75a3bba296d 100644 --- a/gdb/testsuite/gdb.cp/print-method-args.exp +++ b/gdb/testsuite/gdb.cp/print-method-args.exp @@ -17,7 +17,7 @@ =20 # This test checks that a constructor and destructor are printed the same. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/printmethod.exp b/gdb/testsuite/gdb.cp/pr= intmethod.exp index 0cdb271b85e..4ab8b60ffe3 100644 --- a/gdb/testsuite/gdb.cp/printmethod.exp +++ b/gdb/testsuite/gdb.cp/printmethod.exp @@ -19,7 +19,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/psmang.exp b/gdb/testsuite/gdb.cp/psmang.= exp index ba3e75666d9..f9644dc3053 100644 --- a/gdb/testsuite/gdb.cp/psmang.exp +++ b/gdb/testsuite/gdb.cp/psmang.exp @@ -176,7 +176,7 @@ # =20 =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile psmang1.cc psmang2.cc =20 diff --git a/gdb/testsuite/gdb.cp/psymtab-parameter.exp b/gdb/testsuite/gdb= .cp/psymtab-parameter.exp index ad64df6d0b9..b517405d3c6 100644 --- a/gdb/testsuite/gdb.cp/psymtab-parameter.exp +++ b/gdb/testsuite/gdb.cp/psymtab-parameter.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/ptype-cv-cp.exp b/gdb/testsuite/gdb.cp/pt= ype-cv-cp.exp index 4f0a6d98be0..ebd7e8d856e 100644 --- a/gdb/testsuite/gdb.cp/ptype-cv-cp.exp +++ b/gdb/testsuite/gdb.cp/ptype-cv-cp.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/ptype-flags.exp b/gdb/testsuite/gdb.cp/pt= ype-flags.exp index e09447ed515..71018556840 100644 --- a/gdb/testsuite/gdb.cp/ptype-flags.exp +++ b/gdb/testsuite/gdb.cp/ptype-flags.exp @@ -15,7 +15,7 @@ =20 set nl "\[\r\n\]+" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/punctuator.exp b/gdb/testsuite/gdb.cp/pun= ctuator.exp index 62433721893..d1d7ab1be19 100644 --- a/gdb/testsuite/gdb.cp/punctuator.exp +++ b/gdb/testsuite/gdb.cp/punctuator.exp @@ -17,7 +17,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_cplus_tests +require allow_cplus_tests =20 gdb_exit gdb_start diff --git a/gdb/testsuite/gdb.cp/re-set-overloaded.exp b/gdb/testsuite/gdb= .cp/re-set-overloaded.exp index d309c46694b..2b52be119dd 100644 --- a/gdb/testsuite/gdb.cp/re-set-overloaded.exp +++ b/gdb/testsuite/gdb.cp/re-set-overloaded.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests !skip_shlib_tests +require allow_cplus_tests !skip_shlib_tests =20 standard_testfile bool.cc .cc =20 diff --git a/gdb/testsuite/gdb.cp/ref-params.exp b/gdb/testsuite/gdb.cp/ref= -params.exp index b4c6cee8914..52bbb4d097a 100644 --- a/gdb/testsuite/gdb.cp/ref-params.exp +++ b/gdb/testsuite/gdb.cp/ref-params.exp @@ -20,7 +20,7 @@ # test running programs # =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/ref-types.exp b/gdb/testsuite/gdb.cp/ref-= types.exp index c1b9866cf67..2187c25c08f 100644 --- a/gdb/testsuite/gdb.cp/ref-types.exp +++ b/gdb/testsuite/gdb.cp/ref-types.exp @@ -20,7 +20,7 @@ # test running programs # =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/rtti.exp b/gdb/testsuite/gdb.cp/rtti.exp index 08320536895..a6944b4f919 100644 --- a/gdb/testsuite/gdb.cp/rtti.exp +++ b/gdb/testsuite/gdb.cp/rtti.exp @@ -26,7 +26,7 @@ # (involving templates, in particular) where this problem triggers # because GDB and GCC have different ideas what a class is called. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp b/gdb/testsuite/gdb.= cp/rvalue-ref-casts.exp index f1399ef1657..6c013973e06 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp @@ -17,7 +17,7 @@ =20 # C++11 rvalue reference type casting tests, based on gdb.cp/casts.exp. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp b/gdb/testsuite/g= db.cp/rvalue-ref-overload.exp index 94ac3841eb6..ec8d056e94f 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp @@ -18,7 +18,7 @@ # Tests for overloaded member functions with rvalue reference parameters, # based on gdb.cp/overload.exp. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-params.exp b/gdb/testsuite/gdb= .cp/rvalue-ref-params.exp index 46c32cebf9a..3a741963113 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-params.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-params.exp @@ -16,7 +16,7 @@ # Tests for rvalue reference parameters of types and their subtypes in GDB, # based on gdb.cp/ref-params.exp. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-sizeof.exp b/gdb/testsuite/gdb= .cp/rvalue-ref-sizeof.exp index 52e8c682ef7..fe2c9c5aafb 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-sizeof.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-sizeof.exp @@ -18,7 +18,7 @@ =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing ${testfile}.exp $testfile $srcfile \ {debug c++ additional_flags=3D"-std=3Dgnu++11"}] } { diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-types.exp b/gdb/testsuite/gdb.= cp/rvalue-ref-types.exp index f2963be0c52..9029be91f9b 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-types.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-types.exp @@ -16,7 +16,7 @@ # Tests for reference types with short type variables in GDB, based on # gdb.cp/ref-types.exp. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/scope-err.exp b/gdb/testsuite/gdb.cp/scop= e-err.exp index e2dec7326a4..bd0f1b719cf 100644 --- a/gdb/testsuite/gdb.cp/scope-err.exp +++ b/gdb/testsuite/gdb.cp/scope-err.exp @@ -16,7 +16,7 @@ # Tests for linespec errors with C++. # Derived from gdb.linespec/ls-errs.exp. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc set exefile $testfile diff --git a/gdb/testsuite/gdb.cp/static-method.exp b/gdb/testsuite/gdb.cp/= static-method.exp index 282b5b7ce0d..775867579dc 100644 --- a/gdb/testsuite/gdb.cp/static-method.exp +++ b/gdb/testsuite/gdb.cp/static-method.exp @@ -37,7 +37,7 @@ proc test_breakpoint {func result} { } } =20 -require !skip_cplus_tests +require allow_cplus_tests =20 # Tests for c++/12750 standard_testfile .cc diff --git a/gdb/testsuite/gdb.cp/static-print-quit.exp b/gdb/testsuite/gdb= .cp/static-print-quit.exp index f7f3ec095eb..1c333a7fa11 100644 --- a/gdb/testsuite/gdb.cp/static-print-quit.exp +++ b/gdb/testsuite/gdb.cp/static-print-quit.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/static-typedef-print.exp b/gdb/testsuite/= gdb.cp/static-typedef-print.exp index 91fa658c437..f63f04a4147 100644 --- a/gdb/testsuite/gdb.cp/static-typedef-print.exp +++ b/gdb/testsuite/gdb.cp/static-typedef-print.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/stub-array-size.exp b/gdb/testsuite/gdb.c= p/stub-array-size.exp index 9492c47a72c..0afe232d583 100644 --- a/gdb/testsuite/gdb.cp/stub-array-size.exp +++ b/gdb/testsuite/gdb.cp/stub-array-size.exp @@ -18,7 +18,7 @@ # Test size of arrays of stubbed types (structures where the full definiti= on # is not immediately available). =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc stub-array-size2.cc =20 diff --git a/gdb/testsuite/gdb.cp/subtypes.exp b/gdb/testsuite/gdb.cp/subty= pes.exp index 67372c59a65..f5cf349cc26 100644 --- a/gdb/testsuite/gdb.cp/subtypes.exp +++ b/gdb/testsuite/gdb.cp/subtypes.exp @@ -16,7 +16,7 @@ # Test for subtype definitions, i.e., types defined in classes, functions, # etc. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/temargs.exp b/gdb/testsuite/gdb.cp/temarg= s.exp index 4d7677ea725..8ee0d260076 100644 --- a/gdb/testsuite/gdb.cp/temargs.exp +++ b/gdb/testsuite/gdb.cp/temargs.exp @@ -17,7 +17,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/templates.exp b/gdb/testsuite/gdb.cp/temp= lates.exp index 41709b503e3..ba21c4727d3 100644 --- a/gdb/testsuite/gdb.cp/templates.exp +++ b/gdb/testsuite/gdb.cp/templates.exp @@ -17,7 +17,7 @@ =20 set ws "\[\r\n\t \]+" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/try_catch.exp b/gdb/testsuite/gdb.cp/try_= catch.exp index 9dd7eecbfe3..58ab88220e4 100644 --- a/gdb/testsuite/gdb.cp/try_catch.exp +++ b/gdb/testsuite/gdb.cp/try_catch.exp @@ -18,7 +18,7 @@ =20 # This file is part of the gdb testsuite =20 -require !skip_stl_tests +require allow_stl_tests =20 # # test running programs diff --git a/gdb/testsuite/gdb.cp/typed-enum.exp b/gdb/testsuite/gdb.cp/typ= ed-enum.exp index ad6aa29d2aa..1d11fb5a302 100644 --- a/gdb/testsuite/gdb.cp/typed-enum.exp +++ b/gdb/testsuite/gdb.cp/typed-enum.exp @@ -15,7 +15,7 @@ # # Check if unsigned typedef are handled correctly with typed enums. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/typedef-base.exp b/gdb/testsuite/gdb.cp/t= ypedef-base.exp index 7a0d5f237d8..7dfccc388fe 100644 --- a/gdb/testsuite/gdb.cp/typedef-base.exp +++ b/gdb/testsuite/gdb.cp/typedef-base.exp @@ -15,7 +15,7 @@ # # Make sure that inheritance through a typedef is well handled. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/typedef-operator.exp b/gdb/testsuite/gdb.= cp/typedef-operator.exp index f0cfc4b011d..d2f00896a56 100644 --- a/gdb/testsuite/gdb.cp/typedef-operator.exp +++ b/gdb/testsuite/gdb.cp/typedef-operator.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/typeid.exp b/gdb/testsuite/gdb.cp/typeid.= exp index b4766d003dc..fb8f0aa023e 100644 --- a/gdb/testsuite/gdb.cp/typeid.exp +++ b/gdb/testsuite/gdb.cp/typeid.exp @@ -15,7 +15,7 @@ =20 standard_testfile .cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++= }]} { return -1 diff --git a/gdb/testsuite/gdb.cp/userdef.exp b/gdb/testsuite/gdb.cp/userde= f.exp index 1ab609bd480..9b5a6f11f96 100644 --- a/gdb/testsuite/gdb.cp/userdef.exp +++ b/gdb/testsuite/gdb.cp/userdef.exp @@ -19,7 +19,7 @@ # source file "userdef.cc" # =20 -require !skip_stl_tests +require allow_stl_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/var-tag.exp b/gdb/testsuite/gdb.cp/var-ta= g.exp index aa615986ee2..5db6a8be576 100644 --- a/gdb/testsuite/gdb.cp/var-tag.exp +++ b/gdb/testsuite/gdb.cp/var-tag.exp @@ -17,7 +17,7 @@ =20 # Test expressions in which variable names shadow tag names. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile var-tag.cc var-tag-2.cc var-tag-3.cc var-tag-4.cc =20 diff --git a/gdb/testsuite/gdb.cp/virtbase.exp b/gdb/testsuite/gdb.cp/virtb= ase.exp index 8408235d507..631c5ee438c 100644 --- a/gdb/testsuite/gdb.cp/virtbase.exp +++ b/gdb/testsuite/gdb.cp/virtbase.exp @@ -15,7 +15,7 @@ =20 # This file is part of the gdb testsuite. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/virtbase2.exp b/gdb/testsuite/gdb.cp/virt= base2.exp index 9b18f599703..54bc07c0cb2 100644 --- a/gdb/testsuite/gdb.cp/virtbase2.exp +++ b/gdb/testsuite/gdb.cp/virtbase2.exp @@ -15,7 +15,7 @@ =20 # Make sure printing virtual base class data member works correctly (PR168= 41) =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.cp/virtfunc.exp b/gdb/testsuite/gdb.cp/virtf= unc.exp index 89c5b6da7a5..445befddf28 100644 --- a/gdb/testsuite/gdb.cp/virtfunc.exp +++ b/gdb/testsuite/gdb.cp/virtfunc.exp @@ -18,7 +18,7 @@ =20 set nl "\[\r\n\]+" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/virtfunc2.exp b/gdb/testsuite/gdb.cp/virt= func2.exp index de9ed11b9f8..a7b96ae40bf 100644 --- a/gdb/testsuite/gdb.cp/virtfunc2.exp +++ b/gdb/testsuite/gdb.cp/virtfunc2.exp @@ -18,7 +18,7 @@ =20 set nl "\[\r\n\]+" =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib "cp-support.exp" =20 diff --git a/gdb/testsuite/gdb.cp/watch-cp.exp b/gdb/testsuite/gdb.cp/watch= -cp.exp index 62429f76041..6ef245e9e72 100644 --- a/gdb/testsuite/gdb.cp/watch-cp.exp +++ b/gdb/testsuite/gdb.cp/watch-cp.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests !skip_hw_watchpoint_tests +require allow_cplus_tests !skip_hw_watchpoint_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp b/gdb/testsuite/gdb.dw= arf2/anon-ns-fn.exp index 715152829eb..2155efe1863 100644 --- a/gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp +++ b/gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp b/gdb/testsuite/gdb= .dwarf2/dw2-anon-mptr.exp index 422e3f8559d..b24500b8301 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp @@ -18,7 +18,7 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .S =20 diff --git a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp b/gdb/t= estsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp index 867cd1b6a6c..032aec86731 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp @@ -17,7 +17,7 @@ # type containing a static member of the same type. =20 # Still no C++ compiler is used. -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp b/gdb/test= suite/gdb.dwarf2/dw2-linkage-name-trust.exp index 4fd54825718..6cad9c32d61 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp @@ -17,7 +17,7 @@ # type containing a static member of the same type. =20 # Still no C++ compiler is used. -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. diff --git a/gdb/testsuite/gdb.dwarf2/implptrconst.exp b/gdb/testsuite/gdb.= dwarf2/implptrconst.exp index 9199f3c7a5b..109fa4bdade 100644 --- a/gdb/testsuite/gdb.dwarf2/implptrconst.exp +++ b/gdb/testsuite/gdb.dwarf2/implptrconst.exp @@ -18,7 +18,7 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile main.c -dw.S =20 diff --git a/gdb/testsuite/gdb.dwarf2/implptrpiece.exp b/gdb/testsuite/gdb.= dwarf2/implptrpiece.exp index 6102a96d988..e6cd728d088 100644 --- a/gdb/testsuite/gdb.dwarf2/implptrpiece.exp +++ b/gdb/testsuite/gdb.dwarf2/implptrpiece.exp @@ -18,7 +18,7 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile main.c -dw.S =20 diff --git a/gdb/testsuite/gdb.dwarf2/implref-array.exp b/gdb/testsuite/gdb= .dwarf2/implref-array.exp index bcff7bb7729..8ab51b627ef 100644 --- a/gdb/testsuite/gdb.dwarf2/implref-array.exp +++ b/gdb/testsuite/gdb.dwarf2/implref-array.exp @@ -16,7 +16,7 @@ # Test a C++ reference marked with DW_OP_GNU_implicit_pointer. # The referenced value is a global array whose location is a DW_OP_addr. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib dwarf.exp =20 diff --git a/gdb/testsuite/gdb.dwarf2/implref-const.exp b/gdb/testsuite/gdb= .dwarf2/implref-const.exp index 13608eaa8ff..19c6a8d8775 100644 --- a/gdb/testsuite/gdb.dwarf2/implref-const.exp +++ b/gdb/testsuite/gdb.dwarf2/implref-const.exp @@ -16,7 +16,7 @@ # Test a C++ reference marked with DW_OP_GNU_implicit_pointer. # The referenced value is a DW_AT_const_value. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib dwarf.exp =20 diff --git a/gdb/testsuite/gdb.dwarf2/implref-global.exp b/gdb/testsuite/gd= b.dwarf2/implref-global.exp index e01aeafc84b..f0f1cd70048 100644 --- a/gdb/testsuite/gdb.dwarf2/implref-global.exp +++ b/gdb/testsuite/gdb.dwarf2/implref-global.exp @@ -16,7 +16,7 @@ # Test a C++ reference marked with DW_OP_GNU_implicit_pointer. # The referenced value is a global variable whose location is a DW_OP_addr. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib dwarf.exp =20 diff --git a/gdb/testsuite/gdb.dwarf2/implref-struct.exp b/gdb/testsuite/gd= b.dwarf2/implref-struct.exp index 822256bea38..83427688d3e 100644 --- a/gdb/testsuite/gdb.dwarf2/implref-struct.exp +++ b/gdb/testsuite/gdb.dwarf2/implref-struct.exp @@ -16,7 +16,7 @@ # Test a C++ reference marked with DW_OP_GNU_implicit_pointer. # The referenced value is a global struct whose location is a DW_OP_addr. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib dwarf.exp =20 diff --git a/gdb/testsuite/gdb.dwarf2/imported-unit.exp b/gdb/testsuite/gdb= .dwarf2/imported-unit.exp index f1dfed83e6a..7e28931be22 100644 --- a/gdb/testsuite/gdb.dwarf2/imported-unit.exp +++ b/gdb/testsuite/gdb.dwarf2/imported-unit.exp @@ -22,7 +22,7 @@ # on specific compiler versions or use of optimization switches, in # this case -flto. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib dwarf.exp =20 diff --git a/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp b/gdb/tests= uite/gdb.dwarf2/member-ptr-forwardref.exp index 1abc4141041..9afad943d1c 100644 --- a/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp +++ b/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp @@ -17,7 +17,7 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .S =20 diff --git a/gdb/testsuite/gdb.dwarf2/method-ptr.exp b/gdb/testsuite/gdb.dw= arf2/method-ptr.exp index c3a75c35c4a..1bcbbb44e94 100644 --- a/gdb/testsuite/gdb.dwarf2/method-ptr.exp +++ b/gdb/testsuite/gdb.dwarf2/method-ptr.exp @@ -17,7 +17,7 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc -dw.S =20 diff --git a/gdb/testsuite/gdb.dwarf2/missing-sig-type.exp b/gdb/testsuite/= gdb.dwarf2/missing-sig-type.exp index 22784554014..22370de3d71 100644 --- a/gdb/testsuite/gdb.dwarf2/missing-sig-type.exp +++ b/gdb/testsuite/gdb.dwarf2/missing-sig-type.exp @@ -17,7 +17,7 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile main.c -dw4.S =20 diff --git a/gdb/testsuite/gdb.dwarf2/nostaticblock.exp b/gdb/testsuite/gdb= .dwarf2/nostaticblock.exp index f0bea26faba..945bc335fd4 100644 --- a/gdb/testsuite/gdb.dwarf2/nostaticblock.exp +++ b/gdb/testsuite/gdb.dwarf2/nostaticblock.exp @@ -17,7 +17,7 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile main.c .S =20 diff --git a/gdb/testsuite/gdb.dwarf2/nullptr_t.exp b/gdb/testsuite/gdb.dwa= rf2/nullptr_t.exp index f77a136de1f..c40c7677f7f 100644 --- a/gdb/testsuite/gdb.dwarf2/nullptr_t.exp +++ b/gdb/testsuite/gdb.dwarf2/nullptr_t.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.dwarf2/staticvirtual.exp b/gdb/testsuite/gdb= .dwarf2/staticvirtual.exp index f35f0af5368..96466e7afe5 100644 --- a/gdb/testsuite/gdb.dwarf2/staticvirtual.exp +++ b/gdb/testsuite/gdb.dwarf2/staticvirtual.exp @@ -17,7 +17,7 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile main.c -dw.S =20 diff --git a/gdb/testsuite/gdb.dwarf2/subrange.exp b/gdb/testsuite/gdb.dwar= f2/subrange.exp index 253295d6538..72d7babc88e 100644 --- a/gdb/testsuite/gdb.dwarf2/subrange.exp +++ b/gdb/testsuite/gdb.dwarf2/subrange.exp @@ -17,7 +17,7 @@ load_lib dwarf.exp # This test can only be run on targets which support DWARF-2 and use gas. require dwarf2_support =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile method-ptr.cc -dw.S =20 diff --git a/gdb/testsuite/gdb.guile/scm-value-cc.exp b/gdb/testsuite/gdb.g= uile/scm-value-cc.exp index 3e68707ddbc..5b2a3c96c80 100644 --- a/gdb/testsuite/gdb.guile/scm-value-cc.exp +++ b/gdb/testsuite/gdb.guile/scm-value-cc.exp @@ -18,7 +18,7 @@ =20 load_lib gdb-guile.exp =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.guile/scm-value.exp b/gdb/testsuite/gdb.guil= e/scm-value.exp index ee49c01599e..9858b1c1a38 100644 --- a/gdb/testsuite/gdb.guile/scm-value.exp +++ b/gdb/testsuite/gdb.guile/scm-value.exp @@ -451,7 +451,7 @@ test_value_after_death =20 test_subscript_regression "${binfile}" "c" =20 -if ![skip_cplus_tests] { +if {[allow_cplus_tests]} { if { [build_inferior "${binfile}-cxx" "c++"] < 0 } { return } diff --git a/gdb/testsuite/gdb.linespec/break-ask.exp b/gdb/testsuite/gdb.l= inespec/break-ask.exp index 1895a509c25..8de8a958022 100644 --- a/gdb/testsuite/gdb.linespec/break-ask.exp +++ b/gdb/testsuite/gdb.linespec/break-ask.exp @@ -15,7 +15,7 @@ =20 standard_testfile lspec.cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 set opts {debug c++} set objfile1 [standard_output_file ${testfile}one.o] diff --git a/gdb/testsuite/gdb.linespec/cpexplicit.exp b/gdb/testsuite/gdb.= linespec/cpexplicit.exp index 959e399663c..2a829bf526c 100644 --- a/gdb/testsuite/gdb.linespec/cpexplicit.exp +++ b/gdb/testsuite/gdb.linespec/cpexplicit.exp @@ -15,7 +15,7 @@ =20 # Tests for explicit linespecs =20 -require !skip_cplus_tests +require allow_cplus_tests =20 standard_testfile .cc set exefile $testfile diff --git a/gdb/testsuite/gdb.linespec/linespec.exp b/gdb/testsuite/gdb.li= nespec/linespec.exp index 1a819cab9b4..f0ff97b8f45 100644 --- a/gdb/testsuite/gdb.linespec/linespec.exp +++ b/gdb/testsuite/gdb.linespec/linespec.exp @@ -22,7 +22,7 @@ set exefile $testfile set baseone base/one/thefile.cc set basetwo base/two/thefile.cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing "failed to prepare" $exefile \ [list $srcfile $baseone $basetwo] \ diff --git a/gdb/testsuite/gdb.linespec/ls-dollar.exp b/gdb/testsuite/gdb.l= inespec/ls-dollar.exp index 4ce57572050..2707e885faf 100644 --- a/gdb/testsuite/gdb.linespec/ls-dollar.exp +++ b/gdb/testsuite/gdb.linespec/ls-dollar.exp @@ -18,7 +18,7 @@ standard_testfile .cc set exefile $testfile =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing "failed to prepare" $exefile $srcfile \ {debug nowarnings c++}]} { diff --git a/gdb/testsuite/gdb.linespec/ls-errs.exp b/gdb/testsuite/gdb.lin= espec/ls-errs.exp index 614ea9a584a..08dca4b4913 100644 --- a/gdb/testsuite/gdb.linespec/ls-errs.exp +++ b/gdb/testsuite/gdb.linespec/ls-errs.exp @@ -30,7 +30,7 @@ proc do_test {lang} { set options {debug} =20 if {$lang =3D=3D "C++"} { - if {[skip_cplus_tests]} { + if {![allow_cplus_tests]} { return 0 } # Build ".c" source file with g++. diff --git a/gdb/testsuite/gdb.linespec/skip-two.exp b/gdb/testsuite/gdb.li= nespec/skip-two.exp index 30dd7cb0641..3ac6f890b6b 100644 --- a/gdb/testsuite/gdb.linespec/skip-two.exp +++ b/gdb/testsuite/gdb.linespec/skip-two.exp @@ -20,7 +20,7 @@ set execfile $testfile set baseone base/one/thefile.cc set basetwo base/two/thefile.cc =20 -require !skip_cplus_tests +require allow_cplus_tests =20 if {[prepare_for_testing "failed to prepare" $execfile \ [list $srcfile $baseone $basetwo] \ diff --git a/gdb/testsuite/gdb.mi/gdb792.exp b/gdb/testsuite/gdb.mi/gdb792.= exp index 65279de1dce..2001f11b6fa 100644 --- a/gdb/testsuite/gdb.mi/gdb792.exp +++ b/gdb/testsuite/gdb.mi/gdb792.exp @@ -16,7 +16,7 @@ # Test that children of classes are properly reported. Regression # test for gdb/792. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp b/gdb/testsui= te/gdb.mi/mi-catch-cpp-exceptions.exp index a130acc193a..ac2d8e18828 100644 --- a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp +++ b/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp @@ -15,7 +15,7 @@ =20 # Test the -catch-throw, -catch-rethrow, and -catch-catch MI commands. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp b/gdb/tes= tsuite/gdb.mi/mi-inheritance-syntax-error.exp index 7af5d3393f5..a0976c071a7 100644 --- a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp +++ b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp b/gdb/testsuite/gd= b.mi/mi-linespec-err-cp.exp index 645cbefca80..57bc4a59d5a 100644 --- a/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp +++ b/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp @@ -17,7 +17,7 @@ # errors is generated when setting a breakpoint in a non-existent # file with a Windows-style logical drive names and C++. =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-var-cp.exp b/gdb/testsuite/gdb.mi/mi-v= ar-cp.exp index cc683ad0584..fa28e58f801 100644 --- a/gdb/testsuite/gdb.mi/mi-var-cp.exp +++ b/gdb/testsuite/gdb.mi/mi-var-cp.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-var-rtti.exp b/gdb/testsuite/gdb.mi/mi= -var-rtti.exp index 6ae6760ba99..c724078a5cb 100644 --- a/gdb/testsuite/gdb.mi/mi-var-rtti.exp +++ b/gdb/testsuite/gdb.mi/mi-var-rtti.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests +require allow_cplus_tests =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.python/py-explore-cc.exp b/gdb/testsuite/gdb= .python/py-explore-cc.exp index d3678cf71ca..a467e84a482 100644 --- a/gdb/testsuite/gdb.python/py-explore-cc.exp +++ b/gdb/testsuite/gdb.python/py-explore-cc.exp @@ -16,7 +16,7 @@ # This file is part of the GDB testsuite. It tests the mechanism # exposing values to Python. =20 -require !skip_cplus_tests !skip_python_tests +require allow_cplus_tests !skip_python_tests =20 standard_testfile py-explore.cc =20 diff --git a/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp b/gdb/test= suite/gdb.python/py-rvalue-ref-value-cc.exp index 66a010108f4..aeb3f9c93cd 100644 --- a/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp +++ b/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp @@ -17,7 +17,7 @@ # exposing rvalue reference values to Python. It is based on # gdb.python/py-value-cc.exp. =20 -require !skip_cplus_tests !skip_python_tests +require allow_cplus_tests !skip_python_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.python/py-template.exp b/gdb/testsuite/gdb.p= ython/py-template.exp index 14ebb670188..b337bfb8f01 100644 --- a/gdb/testsuite/gdb.python/py-template.exp +++ b/gdb/testsuite/gdb.python/py-template.exp @@ -16,7 +16,7 @@ # This file is part of the GDB testsuite. It tests the mechanism # exposing values to Python. =20 -require !skip_cplus_tests !skip_python_tests +require allow_cplus_tests !skip_python_tests =20 standard_testfile .cc if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable= \ diff --git a/gdb/testsuite/gdb.python/py-typeprint.exp b/gdb/testsuite/gdb.= python/py-typeprint.exp index 37e29294805..219e8527ecb 100644 --- a/gdb/testsuite/gdb.python/py-typeprint.exp +++ b/gdb/testsuite/gdb.python/py-typeprint.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_cplus_tests !skip_python_tests +require allow_cplus_tests !skip_python_tests =20 load_lib gdb-python.exp load_lib cp-support.exp diff --git a/gdb/testsuite/gdb.python/py-value-cc.exp b/gdb/testsuite/gdb.p= ython/py-value-cc.exp index 4085a87440e..69439e226bf 100644 --- a/gdb/testsuite/gdb.python/py-value-cc.exp +++ b/gdb/testsuite/gdb.python/py-value-cc.exp @@ -16,7 +16,7 @@ # This file is part of the GDB testsuite. It tests the mechanism # exposing values to Python. =20 -require !skip_cplus_tests !skip_python_tests +require allow_cplus_tests !skip_python_tests =20 standard_testfile .cc =20 diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.pyth= on/py-value.exp index 8ab188c7ea5..26ad72a5401 100644 --- a/gdb/testsuite/gdb.python/py-value.exp +++ b/gdb/testsuite/gdb.python/py-value.exp @@ -664,7 +664,7 @@ test_value_after_death =20 test_subscript_regression "${binfile}" "c" =20 -if ![skip_cplus_tests] { +if {[allow_cplus_tests]} { if { [build_inferior "${binfile}-cxx" "c++"] < 0 } { return -1 } diff --git a/gdb/testsuite/gdb.python/py-xmethods.exp b/gdb/testsuite/gdb.p= ython/py-xmethods.exp index 6a9e5f22dc1..c164fec82aa 100644 --- a/gdb/testsuite/gdb.python/py-xmethods.exp +++ b/gdb/testsuite/gdb.python/py-xmethods.exp @@ -18,7 +18,7 @@ =20 load_lib gdb-python.exp =20 -require !skip_cplus_tests !skip_python_tests +require allow_cplus_tests !skip_python_tests =20 standard_testfile py-xmethods.cc =20 diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 40a12612b3e..b1d0e7aefdf 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2379,29 +2379,28 @@ proc gdb_compile_test {src output} { fail "$msg" } =20 -# Return a 1 for configurations for which we don't even want to try to -# test C++. +# Return a 1 for configurations for which we want to try to test C++. =20 -proc skip_cplus_tests {} { +proc allow_cplus_tests {} { if { [istarget "h8300-*-*"] } { - return 1 + return 0 } =20 # The C++ IO streams are too large for HC11/HC12 and are thus not # available. The gdb C++ tests use them and don't compile. if { [istarget "m6811-*-*"] } { - return 1 + return 0 } if { [istarget "m6812-*-*"] } { - return 1 + return 0 } - return 0 + return 1 } =20 -# Return a 1 for configurations for which don't have both C++ and the STL. +# Return a 0 for configurations which are missing either C++ or the STL. =20 -proc skip_stl_tests {} { - return [skip_cplus_tests] +proc allow_stl_tests {} { + return [allow_cplus_tests] } =20 # Return a 1 if I don't even want to try to test FORTRAN.