From 34b965f7c006e64dbd5546575744daa642d4856f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 21 Dec 2021 16:24:16 -0700 Subject: Move gdb_bfd_errmsg to gdb_bfd.c gdb_bfd.c contains most of gdb's BFD-related utility functions. However, gdb_bfd_errmsg is in utils.c. It seemed better to me to move this out of util.[ch] and into the BFD-related file instead. Tested by rebuilding. --- gdb/utils.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gdb/utils.h') diff --git a/gdb/utils.h b/gdb/utils.h index 03424e6..fe72078 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -109,13 +109,6 @@ compare_cstrings (const char *str1, const char *str2) return strcmp (str1, str2) < 0; } -/* A wrapper for bfd_errmsg to produce a more helpful error message - in the case of bfd_error_file_ambiguously recognized. - MATCHING, if non-NULL, is the corresponding argument to - bfd_check_format_matches, and will be freed. */ - -extern std::string gdb_bfd_errmsg (bfd_error_type error_tag, char **matching); - /* Reset the prompt_for_continue clock. */ void reset_prompt_for_continue_wait_time (void); /* Return the time spent in prompt_for_continue. */ -- cgit v1.1