From: Andrew Burgess Date: Tue, 7 Jun 2022 16:23:42 +0000 (+0100) Subject: gdb: make throw_perror_with_name static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42d77edce1b4d49fed11fc79576ebe359f9b5f7f;p=binutils-gdb.git gdb: make throw_perror_with_name static The throw_perror_with_name function is not used outside of utils.c right now. And as perror_with_name is just a wrapper around throw_perror_with_name, then any future calls would be to perror_with_name. Lets make throw_perror_with_name static. There should be no user visible changes after this commit. --- diff --git a/gdb/utils.c b/gdb/utils.c index f9dc4f23431..413a4f4d53b 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -623,7 +623,7 @@ perror_string (const char *prefix) as the file name for which the error was encountered. Use ERRCODE for the thrown exception. Then return to command level. */ -void +static void ATTRIBUTE_NORETURN throw_perror_with_name (enum errors errcode, const char *string) { std::string combined = perror_string (string); diff --git a/gdb/utils.h b/gdb/utils.h index 7e2028580bf..d2acf899ba2 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -296,9 +296,6 @@ extern CORE_ADDR string_to_core_addr (const char *my_string); extern void fprintf_symbol (struct ui_file *, const char *, enum language, int); -extern void throw_perror_with_name (enum errors errcode, const char *string) - ATTRIBUTE_NORETURN; - extern void perror_warning_with_name (const char *string); extern void print_sys_errmsg (const char *, int);