From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by sourceware.org (Postfix) with ESMTPS id 9629D3858C00 for ; Thu, 19 Jan 2023 18:56:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9629D3858C00 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-io1-xd33.google.com with SMTP id 203so1379894iou.13 for ; Thu, 19 Jan 2023 10:56:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Jhp4rLfihSaFEzViy9boA7jxEUDu2+h/WgMrJ/VFmiU=; b=XJqVLtJRN1NdAhtjn8QsE0QQgsmzQ/aBxNNF+DxbjCm8gahcqegzRsm3ybCORlLeTt 6MmiR24U3OmB9LwB/VrE+c9UhsKkLv6s5eVD3745DuSNkR+BIfj4uixYU5y0kLu0Ulba tLHNSl7qtfSVpAkUNI6/+tLZDzZFOH0FmD8jSLcUbYshuQa+jVXOWDG5Xg9duTwzjrFG EkPPc6MUkCPULyhQrm5DCp0vbcNPJdGV+TcbXSHNhTLvD2fwYvdLJZYkmjqUaSXX9C+f yzU7sHVGksuSoaWkFYikcPTawLlaP5OA/I+SbseZLyjV60ripFmd+t7h829cpc0tIn3s 3SSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Jhp4rLfihSaFEzViy9boA7jxEUDu2+h/WgMrJ/VFmiU=; b=kA0uA+oSOpKhH3KCYtafIulwrXuZEjEw5EJRuKaqwhRAxaNMP1qMUvRo4F6vW8GXSC Ht1R97ynm4sPVrga6koBN6Vqc9RWFePIaFmXpwmMg3JaHzytzXm+Zt/uH1r9xqK2/sZS IeOVX45jnH6bg4hUt6tYVDFeZ6KxhknWFcSt6Cdokwlk5jJche2MTprAkP9cmk/pein0 XblM5MGKgm0hjkrKOhtK/EGjjm+HF/SnMlznMjHUC+tBdYNgXkYkNrUeZ6qREjNFzdY7 RHD1M55vVyEM86zJMJWxnaZSKAyZfLj8H4ZfLjldLH+dzHcjBsiV3oAkZYu1ohfa2XFw ZBug== X-Gm-Message-State: AFqh2kp1ny9AV5Ruu4BFOmzLVpd1Cp/uZ+Xslymq/9JkJir+yxqWE7ye YKzoULVQ3UF5AtYMsIZ9CcCygFaoh2FBeGPC X-Google-Smtp-Source: AMrXdXuNQZCaRsRAqRQZf1QJ9IlIO7pqkqXJYb2lVyLA2EzoN6t1eGdU61dxn3t9dWJzG8xdzP9IfA== X-Received: by 2002:a5d:88d9:0:b0:6ee:f9e1:423a with SMTP id i25-20020a5d88d9000000b006eef9e1423amr8150548iol.11.1674154577726; Thu, 19 Jan 2023 10:56:17 -0800 (PST) Received: from localhost.localdomain (97-122-76-186.hlrn.qwest.net. [97.122.76.186]) by smtp.gmail.com with ESMTPSA id m10-20020a0566022aca00b006f8b7d869a0sm12420606iov.1.2023.01.19.10.56.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 10:56:17 -0800 (PST) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Use "maint ignore-probes" in no-libstdcxx-probe.exp Date: Thu, 19 Jan 2023 11:56:07 -0700 Message-Id: <20230119185607.1729073-1-tromey@adacore.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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. --- 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/gdb.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 } -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: ''" -if { [skip_libstdcxx_probe_tests] == 0 } { - untested "Have libstdc++ stap probe" +if {![runto_main]} { return -1 } -- 2.38.1