From ec383c736ce5a058ba7f0b55099d5fa9af046222 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Tue, 6 Jan 2009 23:38:44 +0000 Subject: [PATCH] * callback.h (struct host_callback_struct): Mark member error as pointing to a noreturn function. --- include/gdb/ChangeLog | 5 +++++ include/gdb/callback.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog index 368f7196888..02984a14eb7 100644 --- a/include/gdb/ChangeLog +++ b/include/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-01-07 Hans-Peter Nilsson + + * callback.h (struct host_callback_struct): Mark member error as + pointing to a noreturn function. + 2008-02-12 M Ranga Swami Reddy * sim-cr16.h: New file. diff --git a/include/gdb/callback.h b/include/gdb/callback.h index 5ae1d00c30a..5ac48cef6f1 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 */ -- 2.30.2