gdbserver: perror_with_name: Add ATTRIBUTE_NORETURN.
authorPedro Alves <palves@redhat.com>
Tue, 22 Apr 2014 18:47:03 +0000 (19:47 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 23 Apr 2014 16:29:54 +0000 (17:29 +0100)
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
gdb/gdbserver/utils.h

index 0698f74b39c0375d4e62e54ff91c69b91a12952a..ad2b1ae2a3de80ddb5293f736c1e0d63330da2a3 100644 (file)
@@ -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):
index 9a22607e8d20f4b1b80da801b75f1021882dd3c4..906924bad68609ba42297db72d0b3406260eeeb0 100644 (file)
@@ -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);