aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/utils.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-04-22 19:47:03 +0100
committerPedro Alves <palves@redhat.com>2014-04-23 17:29:54 +0100
commitb8acf843690988fa96123b3c54bc3850d874eb35 (patch)
tree97f379aad777bde394af7bc9dca0a209e4a6c037 /gdb/gdbserver/utils.h
parent08351840eabb44799e3d01026610420758f4fa40 (diff)
downloadgdb-b8acf843690988fa96123b3c54bc3850d874eb35.zip
gdb-b8acf843690988fa96123b3c54bc3850d874eb35.tar.gz
gdb-b8acf843690988fa96123b3c54bc3850d874eb35.tar.bz2
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 <palves@redhat.com> * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
Diffstat (limited to 'gdb/gdbserver/utils.h')
-rw-r--r--gdb/gdbserver/utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/utils.h b/gdb/gdbserver/utils.h
index 9a22607..906924b 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);