From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 7A01D3858C2A for ; Tue, 10 Oct 2023 20:42:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7A01D3858C2A Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com Received: from smarchi-efficios.internal.efficios.com (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) (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 ESMTPSA id 74F3E1E1A9; Tue, 10 Oct 2023 16:42:16 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 07/24] gdb: make get_cbfd_soname_build_id static Date: Tue, 10 Oct 2023 16:40:02 -0400 Message-ID: <20231010204213.111285-8-simon.marchi@efficios.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231010204213.111285-1-simon.marchi@efficios.com> References: <20231010204213.111285-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3496.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_NONE,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_SOFTFAIL,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 List-Id: It is only used in solib.c. Change-Id: I43461d13d84d65c4f6913d4033678d8983b9910b --- gdb/solib.c | 6 ++++-- gdb/solib.h | 7 ------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/gdb/solib.c b/gdb/solib.c index a85ea5458bce..32f9aa7397c0 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -503,9 +503,11 @@ set_cbfd_soname_build_id (gdb_bfd_ref_ptr abfd, (*mapptr)[soname] = build_id_to_string (build_id); } -/* See solib.h. */ +/* If SONAME had a build-id associated with it in ABFD's registry by a + previous call to set_cbfd_soname_build_id then return the build-id + as a NULL-terminated hex string. */ -gdb::unique_xmalloc_ptr +static gdb::unique_xmalloc_ptr get_cbfd_soname_build_id (gdb_bfd_ref_ptr abfd, const char *soname) { if (abfd.get () == nullptr || soname == nullptr) diff --git a/gdb/solib.h b/gdb/solib.h index 50b154b2b9b6..88ade882396d 100644 --- a/gdb/solib.h +++ b/gdb/solib.h @@ -143,11 +143,4 @@ extern void set_cbfd_soname_build_id (gdb_bfd_ref_ptr abfd, const char *soname, const bfd_build_id *build_id); -/* If SONAME had a build-id associated with it in ABFD's registry by a - previous call to set_cbfd_soname_build_id then return the build-id - as a NULL-terminated hex string. */ - -extern gdb::unique_xmalloc_ptr get_cbfd_soname_build_id - (gdb_bfd_ref_ptr abfd, const char *soname); - #endif /* SOLIB_H */ -- 2.42.0