Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2009-01-07 02:38:44 +0300
committerHans-Peter Nilsson <hp@axis.com>2009-01-07 02:38:44 +0300
commit98d47b2d0d89372862df94dcc8c4a42e9b49d4a2 (patch)
tree6fbaaa49ca297e4ffe5efcec9be4b8ab1ef63c1e /include/gdb
parent952801c27e33255f3a71d84d38281c1bb42600f2 (diff)
* callback.h (struct host_callback_struct): Mark member error as
pointing to a noreturn function.
Diffstat (limited to 'include/gdb')
-rw-r--r--include/gdb/ChangeLog5
-rw-r--r--include/gdb/callback.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog
index 368f71968..02984a14e 100644
--- a/include/gdb/ChangeLog
+++ b/include/gdb/ChangeLog
@@ -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.
diff --git a/include/gdb/callback.h b/include/gdb/callback.h
index 5ae1d00c3..5ac48cef6 100644
--- a/include/gdb/callback.h
+++ b/include/gdb/callback.h
@@ -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 */