From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gLAcDc7O7WcgkCQAWB0awg (envelope-from ) for ; Wed, 02 Apr 2025 19:57:02 -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=nX+ic7vE; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 3097F1E0C3; Wed, 2 Apr 2025 19:57:02 -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 A6DF71E0C0 for ; Wed, 2 Apr 2025 19:57:01 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5C6C23857B8C for ; Wed, 2 Apr 2025 23:56:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C6C23857B8C 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=nX+ic7vE Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id 6CF3D3856951 for ; Wed, 2 Apr 2025 23:45:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6CF3D3856951 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 6CF3D3856951 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=1743637522; cv=none; b=T5qIPrUlNQnmbkwzDrEl1F2wagOCeIecqzgQodEtPcEoL2hRJXTwMiFWTPDwxFtYvOojMylcBewItz62i4ZNiEcyFrFInD8CjWg+Rri/683ZYyABQ9LM6HpLacvDMsgqDo/ed+Hi2s9DzVbxKLTB7xdQmaTDtz9AP9mucOlRAhU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1743637522; c=relaxed/simple; bh=MxPo5LeSvkWkRoU3kfBQmPawXOs6/EoYmEYcB5PtgjY=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=LE1RfN6+4o3nXouwviUe4XYrW+CU/dM4Uq0JGous90rZ4HJM6ieQBpmg5aCT/WgbE/FbMILmyVSJJtor+dyl3qaoQsqkXQQo678zJ1mhA3p0dd7eJAeIshoowuwAVuJJQ+z/1XnM2gfUmqwZNFF+s3/4rwxwu8BswcxqArjygvY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CF3D3856951 Received: from eig-obgw-6007a.ext.cloudfilter.net ([10.0.30.247]) by cmsmtp with ESMTPS id 04uyuKBxAWuHK07lquzk02; Wed, 02 Apr 2025 23:45:22 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 07lpuqtP11bCf07lquMy3X; Wed, 02 Apr 2025 23:45:22 +0000 X-Authority-Analysis: v=2.4 cv=GJ4OEPNK c=1 sm=1 tr=0 ts=67edcc12 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=XR8D0OoHHMoA:10 a=ItBw4LHWJt0A:10 a=tMuCa-SDVS2E2ZHPdjIA:9 a=QEXdDO2ut3YA:10 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=0oPxfkk4ubr2mT8IuSW/8ZqAd2IGAXn5eYiejLzodT0=; b=nX+ic7vE9tTCINpkXSQTR6gfHo t77ijP7yu9B9gPsqjl0eSqMIp+48qqrzigtyUovCLJzm67qBS5piX8x9D93B8mhZik15Do283x2Qu O0X3yQ8BfPzqlAqLToArl9BTo; Received: from 97-122-123-18.hlrn.qwest.net ([97.122.123.18]:56394 helo=prentzel.local) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1u07lp-000000014hd-1qHE; Wed, 02 Apr 2025 17:45:21 -0600 From: Tom Tromey Date: Wed, 02 Apr 2025 17:45:26 -0600 Subject: [PATCH v2 27/28] Make dw_expand_symtabs_matching_file_matcher static MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250402-search-in-psyms-v2-27-ea91704487cb@tromey.com> References: <20250402-search-in-psyms-v2-0-ea91704487cb@tromey.com> In-Reply-To: <20250402-search-in-psyms-v2-0-ea91704487cb@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: 97.122.123.18 X-Source-L: No X-Exim-ID: 1u07lp-000000014hd-1qHE X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-123-18.hlrn.qwest.net (prentzel.local) [97.122.123.18]:56394 X-Source-Auth: tom+tromey.com X-Email-Count: 28 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFK4YGtMgomRpRaoY4cFbfYB6gV3nenoTZdwLux0RqX3Moz9PFr2+hdZJOZpC9R0sFJT6hg3zmtzJaoQvZBNNadaHJDwkyJYIF+QLNZyp1sRNjjZJsEj Mj46DozQlb/twxMnuwNscRFP6g6CuyrOLI9nQkuX7Ft8N0Xx6AYYz1O2j+vxNoXZp7eFv2CplXgpQeBmDEOu2dAjQorA3BdamkI= 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 dw_expand_symtabs_matching_file_matcher is no longer needed outside of read.c, so it can be made static. --- gdb/dwarf2/read.c | 11 +++++++++-- gdb/dwarf2/read.h | 9 --------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 6eee9631623435cbb39830116b790ba4b1f0c21d..efd17c27fcc10f078683ebfa9158ebfc2011f6b3 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -843,6 +843,11 @@ static struct dwarf2_section_info *cu_debug_loc_section (struct dwarf2_cu *cu); static struct dwarf2_section_info *cu_debug_rnglists_section (struct dwarf2_cu *cu, dwarf_tag tag); +static void dw_expand_symtabs_matching_file_matcher + (dwarf2_per_objfile *per_objfile, + auto_bool_vector &marked, + expand_symtabs_file_matcher file_matcher); + static void get_scope_pc_bounds (struct die_info *, unrelocated_addr *, unrelocated_addr *, struct dwarf2_cu *); @@ -1961,9 +1966,11 @@ dw2_expand_symtabs_matching_one return true; } -/* See read.h. */ +/* If FILE_MATCHER is non-NULL, set all the + dwarf2_per_cu_quick_data::MARK of the current DWARF2_PER_OBJFILE + that match FILE_MATCHER. */ -void +static void dw_expand_symtabs_matching_file_matcher (dwarf2_per_objfile *per_objfile, auto_bool_vector &marked, diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h index 6cc08993a3ce7cdfa8b80350e8f0b965ed69b3e3..996afa6feeaf42a3a8750a5af5fd2aa5a0622952 100644 --- a/gdb/dwarf2/read.h +++ b/gdb/dwarf2/read.h @@ -1215,15 +1215,6 @@ extern bool dw2_expand_symtabs_matching_one expand_symtabs_expansion_listener expansion_notify, expand_symtabs_lang_matcher lang_matcher); -/* If FILE_MATCHER is non-NULL, set all the - dwarf2_per_cu_quick_data::MARK of the current DWARF2_PER_OBJFILE - that match FILE_MATCHER. */ - -extern void dw_expand_symtabs_matching_file_matcher - (dwarf2_per_objfile *per_objfile, - auto_bool_vector &marked, - expand_symtabs_file_matcher file_matcher); - /* Return pointer to string at .debug_str offset STR_OFFSET. */ extern const char *read_indirect_string_at_offset -- 2.46.1