From ec383c736ce5a058ba7f0b55099d5fa9af046222 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Tue, 6 Jan 2009 23:38:44 +0000 Subject: * callback.h (struct host_callback_struct): Mark member error as pointing to a noreturn function. --- include/gdb/callback.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/gdb/callback.h') 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 */ -- cgit v1.1