aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/utils.c2
-rw-r--r--gdb/utils.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index f9dc4f2..413a4f4 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 7e20285..d2acf89 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);