* callback.h (struct host_callback_struct): Mark member error as
authorHans-Peter Nilsson <hp@axis.com>
Tue, 6 Jan 2009 23:38:44 +0000 (23:38 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 6 Jan 2009 23:38:44 +0000 (23:38 +0000)
pointing to a noreturn function.

include/gdb/ChangeLog
include/gdb/callback.h

index 368f719688883c95290582928a08c0a7153d2351..02984a14eb74453a929220aebbbf7cdb14e072aa 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-07  Hans-Peter Nilsson  <hp@axis.com>
+
+       * callback.h (struct host_callback_struct): Mark member error as
+       pointing to a noreturn function.
+
 2008-02-12  M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
 
        * sim-cr16.h: New file.
index 5ae1d00c30aaccb838a47849a2df25eee3196769..5ac48cef6f185b98eb1a5eabd63f6675e8fc90d9 100644 (file)
@@ -124,7 +124,11 @@ struct host_callback_struct
   /* Print an error message and "exit".
      In the case of gdb "exiting" means doing a longjmp back to the main
      command loop.  */
-  void (*error) PARAMS ((host_callback *, const char *, ...));
+  void (*error) PARAMS ((host_callback *, const char *, ...))
+#ifdef __GNUC__
+    __attribute__ ((__noreturn__))
+#endif
+    ;
 
   int last_errno;              /* host format */
 
This page took 0.026321 seconds and 4 git commands to generate.