This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[pushed] gdbserver: perror_with_name: Add ATTRIBUTE_NORETURN.
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 23 Apr 2014 17:40:19 +0100
- Subject: [pushed] gdbserver: perror_with_name: Add ATTRIBUTE_NORETURN.
- Authentication-results: sourceware.org; auth=none
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.
---
gdb/gdbserver/ChangeLog | 4 ++++
gdb/gdbserver/utils.h | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 0698f74..ad2b1ae 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2014-04-23 Pedro Alves <palves@redhat.com>
+
+ * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
+
2014-04-10 Pedro Alves <palves@redhat.com>
* mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
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);
--
1.7.11.7