From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id HYPpKbEKh2pabTIAWB0awg (envelope-from ) for ; Thu, 20 Aug 2026 10:09:53 -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=k41mzbRr; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 91E761E0A3; Thu, 20 Aug 2026 10:09:53 -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 9EADE1E033 for ; Thu, 20 Aug 2026 10:09:51 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B6D954BAE7D4 for ; Thu, 20 Aug 2026 14:09:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B6D954BAE7D4 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=k41mzbRr Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 166014BA2E04 for ; Thu, 20 Aug 2026 14:09:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 166014BA2E04 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 166014BA2E04 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=1787234964; cv=none; b=stux7ykyR8GgGpTElL+IMF7g7J9PZalSRq90ei53Quq6tEcR17uGQCQ66lmsSDrVzMj33qC7ST70Ycu7XCSdZrjNL1QPy3IiT2VLKGKhzLrR2bymsCJVU61Z5cWaAVzEh4D3dC5QB0u7L9JaimMsRvr5Bz2pbIPg/0QYQSYRZ/A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787234964; c=relaxed/simple; bh=OeRfsAUtNZKl5sp1cfDTLpLeJkz+4nILLKTT1O9oJEo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=eV6oAwTjx9awmpFZDiM37k/9ST2Hhj5wh3UY6Fs9Ak5ivA+l9zPCN802UIw0r0XkeahphnUPr973HgbzvXAexWH4LgCt0J+cjnTMGxDt4C93+6MEpuv16mVSHhzgWeukAxDuPHebeq31e7RYQD+4caR3cBQoAGtId4z3/B8ePxs= 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=k41mzbRr DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 166014BA2E04 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 0E861E94AC for ; Thu, 20 Aug 2026 16:09:23 +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=1787234962; bh=OeRfs AUtNZKl5sp1cfDTLpLeJkz+4nILLKTT1O9oJEo=; b=k41mzbRrfSs9XxJKXFWbv SpoF64NJkLqyq/m2u4qa2wELcPOc8JGflc25/K4feAnCMolHS+5YFqpqK14SuPO9 IbjBxQ4hpQU1cjURRmBY/a0Jptls4kk+/DlWt5nHaQpX7wgpOuUMPqxPBtmGdb7Q F/GlD3CmgTyWxXfByHv/2kDY0KDlWZEFQ4U8s8jt4V8F9sb1JUbN9P64bVm7dabQ I0n5Minsc9aKaDMlmvUe+Ez9iMij06El5S9gH9wsT8mimHAMhZn0Jjl+k1YzASC0 6DiGgC3I4GkPIDqsIsTC2W07mVvjsBxQ1NrfiDPs/mdAVxejAnMRUdjiEGGB2OVw g== 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 s-NHwD5xdSNN for ; Thu, 20 Aug 2026 16:09:22 +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 884E3E94A8 for ; Thu, 20 Aug 2026 16:09:22 +0200 (CEST) From: Rainer Orth To: Subject: [PATCH] xfail gdb.base/break-on-linker-gcd-function.exp with Solaris ld [PR34534] Date: Thu, 20 Aug 2026 16:09:20 +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 testsuite/34534, a test FAILs on Solaris when using the native ld: FAIL: gdb.base/break-on-linker-gcd-function.exp: break on line in garbage collected function FAIL: gdb.base/break-on-linker-gcd-function.exp: readnow: break on line in garbage collected function Even though ld supports --gc-sections as an alias for the native -z discard-unused=sections, this doesn't work in this particular case. While the issue is under investigation, this patch xfail's the test when Solaris ld is in use. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34534 Ok for trunk? Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=sol2-break-on-linker-gcd-function-xfail.patch # HG changeset patch # Parent 8bd5b9b86ee7cd342e93a2b49bc59430fc65aa40 xfail gdb.base/break-on-linker-gcd-function.exp with Solaris ld [PR34534] diff --git a/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp b/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp --- a/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp +++ b/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp @@ -42,6 +42,13 @@ proc set_breakpoint_on_gcd_function {} { set lineno [gdb_get_line_number "gdb break here"] gdb_test "set breakpoint pending on" + + # PR 34534 + set compiler [find_g++] + set res [catch {exec $compiler -Wl,--version} output] + if [regexp "Solaris Link Editors" $output] { + setup_xfail "*-*-solaris2*" + } gdb_test "b $lineno" \ [multi_line \ "^No compiled code for line $lineno in the current file\\." \ --=-=-=--