aboutsummaryrefslogtreecommitdiff
path: root/include/gdb/callback.h
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2009-01-06 23:38:44 +0000
committerHans-Peter Nilsson <hp@axis.com>2009-01-06 23:38:44 +0000
commitec383c736ce5a058ba7f0b55099d5fa9af046222 (patch)
treeb5eeef13f2e8d1d2f17203aedb1ad8164c4e0f82 /include/gdb/callback.h
parent83c4f5797a2a34bd0f80b8d8004d69258d0f70f2 (diff)
downloadgdb-ec383c736ce5a058ba7f0b55099d5fa9af046222.zip
gdb-ec383c736ce5a058ba7f0b55099d5fa9af046222.tar.gz
gdb-ec383c736ce5a058ba7f0b55099d5fa9af046222.tar.bz2
* callback.h (struct host_callback_struct): Mark member error as
pointing to a noreturn function.
Diffstat (limited to 'include/gdb/callback.h')
-rw-r--r--include/gdb/callback.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gdb/callback.h b/include/gdb/callback.h
index 5ae1d00..5ac48ce 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 */