From patchwork Thu Jan 19 18:56:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 63417 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9AD0F3857BA4 for ; Thu, 19 Jan 2023 18:56:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9AD0F3857BA4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674154601; bh=Jhp4rLfihSaFEzViy9boA7jxEUDu2+h/WgMrJ/VFmiU=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=aW5avRTGLV6c3YsLT6MQCNfRxCbJUcj93G2CA92qmdiQTAZY7EOvnKjJOlEitJiF7 Pw2THW3SgNIoiOo3bYCfYE4EbTNVW5Y2T/m5p7Nb6ZJGj09jAqY/Nu6Z/1Dfu13V5g X3LI3AOqTmEGzvQYjmOk7FpjjonfaOQ2VyMCPrUg= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org 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 Received: by mail-io1-xd33.google.com with SMTP id 203so1379894iou.13 for ; Thu, 19 Jan 2023 10:56:18 -0800 (PST) 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) 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 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom Tromey via Gdb-patches From: Tom Tromey Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" 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 }