From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id IcAuCp4Lh2rRbTIAWB0awg (envelope-from ) for ; Thu, 20 Aug 2026 10:13:50 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de header.a=rsa-sha256 header.s=20200306 header.b=DvgyVAQb; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 26D8D1E0A3; Thu, 20 Aug 2026 10:13:50 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7CF441E033 for ; Thu, 20 Aug 2026 10:13:48 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A15594B9DB71 for ; Thu, 20 Aug 2026 14:13:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A15594B9DB71 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de header.a=rsa-sha256 header.s=20200306 header.b=DvgyVAQb Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id D809B4BA2E06 for ; Thu, 20 Aug 2026 14:13:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D809B4BA2E06 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D809B4BA2E06 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787235181; cv=none; b=Nc38d8EbkZq+QYqz1iExx/RJBE7JHiQwGwCMt0E6UMf9dbZGrjS6D/XklEN1BBNUVzt1Y5wEE9uo+O4aMhUl+EtVnK61WATu/0sLZXmQdIxEy0+in0s+HlYnF9bE166h4jpDD3qOIIRmLbzrJjBduPIrrIRY+EIzkPjILO1iQ6I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787235181; c=relaxed/simple; bh=A4SICz+0nPGGuXWqzlM8pXeLDu+/vIPy2HSS4DQEKlw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Acln3dR1dIT8R/gmd6K5eavtlWHCjYnGrh54xGNZ6ZUapBTnKA/fpZxO55cN23HirJSBq+p7l4LYuRxkbNpgvTWcL0Azzv2dhRlqYNYw3C4xA2bCm3VKz6Cy4mxB2WDno/DWbkTZVIFysDhyIB+NygQiMTWY2UMZxnl9wtRW+o4= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de header.a=rsa-sha256 header.s=20200306 header.b=DvgyVAQb DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D809B4BA2E06 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id EA6A4E94FE for ; Thu, 20 Aug 2026 16:12:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:subject:subject :from:from:received:received; s=20200306; t=1787235179; bh=A4SIC z+0nPGGuXWqzlM8pXeLDu+/vIPy2HSS4DQEKlw=; b=DvgyVAQbFUorBPFrcnv6a haFuT0kCLl26xsVwgmfP1wZaDt+/rKhh6J+byyzRoOj28ZMkaJCLeswqRtYBffUy vs7Z6E2XaSXYZmlR6qLRnDCVcPhjEwtYtwCQjQjAfPSqU1A4QVqpKEz6SlImfA3i MP3j72o+b+JxOZN8CyhIoZV0eBe5LkCr3DW87YkOsObHBDzx+/zIeuKmefRBzlzl wy1c+rEjjgWvVu0AKoNoCE9fZlZc1LOtu2yoVMpnjgFAxoMiem5ilJ0ZJ29+Vkbd ELBFKnwjBupscUFHUUygaEpMDKE88ZuTzOokd4u0znr4ShzBHC8t4ZRuNz3PAmx5 Q== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bv56Mtlz0j06 for ; Thu, 20 Aug 2026 16:12:59 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p508553da.dip0.t-ipconnect.de [80.133.83.218]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 8573FE99FC for ; Thu, 20 Aug 2026 16:12:59 +0200 (CEST) From: Rainer Orth To: Subject: [PATCH] Skip gdb.base/break.exp catchpoint tests without catchpoints [PR34535] Date: Thu, 20 Aug 2026 16:12:59 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org --=-=-= Content-Type: text/plain As detailed in PR PR testsuite/34535, the gdb.base/break.exp test FAILs on Solaris: FAIL: gdb.base/break.exp: test_no_break_on_catchpoint: continue until exit (the program exited) warning: Error inserting catchpoint 2: Your system does not support this type of catchpoint. warning: Error inserting catchpoint 3: Your system does not support this type of catchpoint. warning: Error inserting catchpoint 4: Your system does not support this type of catchpoint. This patch checks for that condition and skips the test if necessary. Tested on x86_64-pc-solaris2.11, sparcv9-sun-solaris2.11, and x86_64-pc-linux-gnu. Ok for trunk? While this patch avoids the failure, I wonder if there's some document on what it takes to actually implement catchpoints. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=sol2-break-no-catchpoint.patch # HG changeset patch # Parent 8ed1f8219b70efa33fd9525699d984918e07bc4c Skip gdb.base/break.exp catchpoint tests without catchpoints [PR34535] diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp --- a/gdb/testsuite/gdb.base/break.exp +++ b/gdb/testsuite/gdb.base/break.exp @@ -455,6 +455,33 @@ test_tbreak # inappropriately. (There are no calls to those system functions # in this test program.) +set fork_catchpoints_supported 0 + +proc probe_fork_catchpoint {} { + clean_restart break + + if {![runto_main]} { + return + } + + gdb_test "catch fork" "Catchpoint.*fork.*" + + gdb_run_cmd + + set test "probe fork catchpoint" + gdb_test_multiple "" $test { + -re "Your system does not support this type.*" { + unsupported $test + } + -re "$::gdb_prompt $" { + set ::fork_catchpoints_supported 1 + pass $test + } + } +} + +probe_fork_catchpoint + proc_with_prefix test_no_break_on_catchpoint {} { clean_restart break @@ -462,6 +489,10 @@ proc_with_prefix test_no_break_on_catchp return } + if {!$::fork_catchpoints_supported} { + return + } + gdb_test "catch fork" "Catchpoint ${::decimal} \\(fork\\)" \ "set catch fork, never expected to trigger" --=-=-=--