From: Simon Marchi Date: Mon, 2 Oct 2023 19:41:34 +0000 (-0400) Subject: gdb: make get_cbfd_soname_build_id static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=539223dec932d76596d56ef23b4724b4f4438cc4;p=binutils-gdb.git gdb: make get_cbfd_soname_build_id static It is only used in solib.c. Change-Id: I43461d13d84d65c4f6913d4033678d8983b9910b Approved-By: Pedro Alves Reviewed-By: Reviewed-By: Lancelot Six --- diff --git a/gdb/solib.c b/gdb/solib.c index a85ea5458bc..32f9aa7397c 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 50b154b2b9b..88ade882396 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 */