From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CEWZFERf4GdhmRgAWB0awg (envelope-from ) for ; Sun, 23 Mar 2025 15:21:40 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=HCGwkOns; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 511741E100; Sun, 23 Mar 2025 15:21:40 -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.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 3C80A1E0C0 for ; Sun, 23 Mar 2025 15:21:38 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C01413857720 for ; Sun, 23 Mar 2025 19:21:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C01413857720 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=HCGwkOns Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id B89E4385770D for ; Sun, 23 Mar 2025 19:20:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B89E4385770D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B89E4385770D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742757606; cv=none; b=bp9sigJEJXzK3DwtNpacImLoxN/kDJr9jxrB76DGZehv2bQjJCuQ5oBjr+jI9/qMW8WeVX35LlzE5gVlNcISvPKDTQaCapM/uRRUsO75+7kO2qhZFSMn78CzwpxWHxCLKb/x7LAi1OpPuHM5DcUTEdBJrfc2HzDiFQCxCmBz4d4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742757606; c=relaxed/simple; bh=bZEKJLxfaeXq2Fbo2jJwdlrxP8XZ5GjBXSWWAUA8YbI=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=EmhjesTxQhQKqsLqY0cuAuWC6++QXgkvTMrPyRz/106flShb1Y/nm4lMatVIqapwPKvritaaD9fXWqesrMDsXBH0QGNvjOywTjKbqFjCtAHTlzEfoMdUOuTIIgzEdhsiheX4QL4cce7n8U7K43P1r5GiRl/wBlg7s5bC/V5Whcg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B89E4385770D Received: from eig-obgw-6008a.ext.cloudfilter.net ([10.0.30.227]) by cmsmtp with ESMTPS id wNS3tTW11WuHKwQrdtamBg; Sun, 23 Mar 2025 19:20:05 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id wQrctmhuanR6ewQrdtslkN; Sun, 23 Mar 2025 19:20:05 +0000 X-Authority-Analysis: v=2.4 cv=QoNY30yd c=1 sm=1 tr=0 ts=67e05ee5 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=mDV3o1hIAAAA:8 a=1c8lypP-xgrs-npg3NYA:9 a=QEXdDO2ut3YA:10 a=ul9cdbp4aOFLsgKbc677:22 a=6Ogn3jAGHLSNbaov7Orx:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hHRy0rdlnbr2lWiHEcQENfMJxwhLsnspHFSZL99kgqA=; b=HCGwkOnspt7WeOj2tIQnxZIUaF r7SYJ25/beM6iHNxk4ctwHwKtCQkVj/MddDUfntJJ9GS6+pG+ThPlNXGIx13NGN4TYiAjOJkOt1QZ up0snU3v6yOeYvaBiY91syp83; Received: from [50.214.9.178] (port=51028 helo=prentzel.rce.guest) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1twQrc-00000004G7J-2ZD0; Sun, 23 Mar 2025 13:20:04 -0600 From: Tom Tromey Date: Sun, 23 Mar 2025 13:20:02 -0600 Subject: [PATCH 3/3] Add "-5" flag to cc-with-tweaks MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250323-dwz-dwarf-5-v2-v1-3-3c0775ca5514@tromey.com> References: <20250323-dwz-dwarf-5-v2-v1-0-3c0775ca5514@tromey.com> In-Reply-To: <20250323-dwz-dwarf-5-v2-v1-0-3c0775ca5514@tromey.com> To: gdb-patches@sourceware.org Cc: Tom Tromey X-Mailer: b4 0.14.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 50.214.9.178 X-Source-L: No X-Exim-ID: 1twQrc-00000004G7J-2ZD0 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (prentzel.rce.guest) [50.214.9.178]:51028 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfOGNI/0IuH8OsnTClP2ckzou0aZSQGi36pc9/+ZDwj34ZFu3PcMzgSkB9cReIXHmSL/Of5CWIlrK1pUy90sFucz3mZFCn7cqc/BSiyH2jeWjvGXxvPsT FK5UzLq+E4Tx/nBQrlQsvvlRJsEfQ9wyFwuUlj1lF8azFHHW+o83m0aBfwUVw+iVgNYNup//4jDnG+GODBN/MJikpmf82DGeNq0= 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 This adds a "-5" flag to cc-with-tweaks, mirroring dwz's "-5" flag, and also adds a new cc-with-dwz-5 target board. The "-5" flag tells dwz to use the DWARF 5 .debug_sup section in multi-file mode. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32808 --- gdb/contrib/cc-with-tweaks.sh | 5 ++++- gdb/testsuite/boards/cc-with-dwz-5.exp | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh index 4214b9292955a8b5f4602d329a93ee0ab606a70a..5677f29493828a9e9fb6041fd03cb85452e04199 100755 --- a/gdb/contrib/cc-with-tweaks.sh +++ b/gdb/contrib/cc-with-tweaks.sh @@ -42,6 +42,7 @@ # -Z invoke objcopy --compress-debug-sections # -z compress using dwz # -m compress using dwz -m +# -5 compress using dwz -m -5 # -i make an index (.gdb_index) # -c make an index (currently .gdb_index) in a cache dir # -n make a dwarf5 index (.debug_names) @@ -88,6 +89,7 @@ want_index=false index_options="" want_index_cache=false want_dwz=false +dwz_5flag= want_multi=false want_dwp=false want_objcopy_compress=false @@ -101,6 +103,7 @@ while [ $# -gt 0 ]; do -n) want_index=true; index_options=-dwarf-5;; -c) want_index_cache=true ;; -m) want_multi=true ;; + -5) want_multi=true; dwz_5flag=-5 ;; -p) want_dwp=true ;; -l) want_gnu_debuglink=true ;; *) break ;; @@ -269,7 +272,7 @@ elif [ "$want_multi" = true ]; then rm -f "$dwz_file" cp "$output_file" "${output_file}.alt" - $DWZ -m "$dwz_file" "$output_file" "${output_file}.alt" > /dev/null + $DWZ $dwz_5flag -m "$dwz_file" "$output_file" "${output_file}.alt" > /dev/null rm -f "${output_file}.alt" # Validate dwz's work by checking if the expected output file exists. diff --git a/gdb/testsuite/boards/cc-with-dwz-5.exp b/gdb/testsuite/boards/cc-with-dwz-5.exp new file mode 100644 index 0000000000000000000000000000000000000000..b254f91e79557a5600a894f0bb0727fd2bcf02f1 --- /dev/null +++ b/gdb/testsuite/boards/cc-with-dwz-5.exp @@ -0,0 +1,28 @@ +# Copyright 2025 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# This file is a dejagnu "board file" and is used to run the testsuite +# with contrib/cc-with-tweaks.sh -5. +# +# NOTE: We assume dwz is in $PATH. +# +# Example usage: +# bash$ cd $objdir +# bash$ make check-gdb \ +# RUNTESTFLAGS='--target_board=cc-with-dwz-5' +# + +set CC_WITH_TWEAKS_FLAGS "-5" +load_board_description "cc-with-tweaks" -- 2.46.1