From: Pedro Alves Date: Tue, 22 Apr 2014 18:47:03 +0000 (+0100) Subject: gdbserver: perror_with_name: Add ATTRIBUTE_NORETURN. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8acf843690988fa96123b3c54bc3850d874eb35;p=binutils-gdb.git gdbserver: perror_with_name: Add ATTRIBUTE_NORETURN. perror_with_name doesn't return, but unlike gdb's version, it wasn't marked that way. gdb/gdbserver/ 2014-04-23 Pedro Alves * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 0698f74b39c..ad2b1ae2a3d 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2014-04-23 Pedro Alves + + * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN. + 2014-04-10 Pedro Alves * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): diff --git a/gdb/gdbserver/utils.h b/gdb/gdbserver/utils.h index 9a22607e8d2..906924bad68 100644 --- a/gdb/gdbserver/utils.h +++ b/gdb/gdbserver/utils.h @@ -21,7 +21,7 @@ #include "print-utils.h" -void perror_with_name (const char *string); +void perror_with_name (const char *string) ATTRIBUTE_NORETURN; void error (const char *string,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); void fatal (const char *string,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); void warning (const char *string,...) ATTRIBUTE_PRINTF (1, 2);