From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id A3D803858CDA; Thu, 19 Jan 2023 22:19:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A3D803858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674166795; bh=M4/YaIQ/pTbZIsi8C7eH5hiGwRfLCU3skFNgo3kV9/Y=; h=From:To:Subject:Date:From; b=qphsARf4XC0e6Ws6meTC72QSX9ArjGJZZQbsobIpTNQihKAActjMC/G65BYWbSJ8a B/MDpIER/l+UP+r3Y1XJMUZrY8BlAjmoFfqQs224SJYoubkioYAOCatYZiLUzo2CAP Xzs4lZCAUSy65upcLI6NqaEFopNTVkunjJ/1MBF4= 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] Use "maint ignore-probes" in no-libstdcxx-probe.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 1bb82b89ae9d884016e55f2ade99c74fcc92a581 X-Git-Newrev: 3db27e74ee6175a2c73f3481ae5c5b8b2e4bc18f Message-Id: <20230119221955.A3D803858CDA@sourceware.org> Date: Thu, 19 Jan 2023 22:19:55 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D3db27e74ee61= 75a2c73f3481ae5c5b8b2e4bc18f commit 3db27e74ee6175a2c73f3481ae5c5b8b2e4bc18f Author: Tom Tromey Date: Thu Jan 19 11:26:53 2023 -0700 Use "maint ignore-probes" in no-libstdcxx-probe.exp =20 While looking at some test output, I saw that no-libstdcxx-probe.exp was not being run. However, it occurred to me that Tom de Vries' new "maint ignore-probes" command could be used to enable this test unconditionally. =20 Reviewed-by: Tom de Vries Diff: --- gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp b/gdb/testsuite/gd= b.cp/no-libstdcxx-probe.exp index b10daa638e6..752298af55d 100644 --- a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp +++ b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp @@ -21,12 +21,11 @@ if {[prepare_for_testing "failed to prepare" $testfile = $srcfile {debug c++}]} { return -1 } =20 -if {![runto_main]} { - return -1 -} +# This tests that $_exception gives an error when the systemtap probes +# are not available, so simulate this by disabling them. +gdb_test "maint ignore-probes libstdcxx .*" ".*OBJNAME: ''" =20 -if { [skip_libstdcxx_probe_tests] =3D=3D 0 } { - untested "Have libstdc++ stap probe" +if {![runto_main]} { return -1 }