diff options
Diffstat (limited to 'gdbsupport/common-exceptions.h')
-rw-r--r-- | gdbsupport/common-exceptions.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/gdbsupport/common-exceptions.h b/gdbsupport/common-exceptions.h index ffc02d2..8f53cd4 100644 --- a/gdbsupport/common-exceptions.h +++ b/gdbsupport/common-exceptions.h @@ -336,27 +336,26 @@ struct gdb_quit_bad_alloc /* Throw an exception (as described by "struct gdb_exception"), landing in the inner most containing exception handler established using TRY/CATCH. */ -extern void throw_exception (gdb_exception &&exception) - ATTRIBUTE_NORETURN; +[[noreturn]] extern void throw_exception (gdb_exception &&exception); /* Throw an exception by executing a LONG JUMP to the inner most containing exception handler established using TRY_SJLJ. Necessary in some cases where we need to throw GDB exceptions across third-party library code (e.g., readline). */ -extern void throw_exception_sjlj (const struct gdb_exception &exception) - ATTRIBUTE_NORETURN; +[[noreturn]] extern void throw_exception_sjlj (const gdb_exception &exception); /* Convenience wrappers around throw_exception that throw GDB errors. */ -extern void throw_verror (enum errors, const char *fmt, va_list ap) - ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (2, 0); -extern void throw_vquit (const char *fmt, va_list ap) - ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 0); -extern void throw_error (enum errors error, const char *fmt, ...) - ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (2, 3); -extern void throw_quit (const char *fmt, ...) - ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); -extern void throw_forced_quit (const char *fmt, ...) - ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); +[[noreturn]] extern void throw_verror (enum errors, const char *fmt, + va_list ap) + ATTRIBUTE_PRINTF (2, 0); +[[noreturn]] extern void throw_vquit (const char *fmt, va_list ap) + ATTRIBUTE_PRINTF (1, 0); +[[noreturn]] extern void throw_error (enum errors error, const char *fmt, ...) + ATTRIBUTE_PRINTF (2, 3); +[[noreturn]] extern void throw_quit (const char *fmt, ...) + ATTRIBUTE_PRINTF (1, 2); +[[noreturn]] [[noreturn]] extern void throw_forced_quit (const char *fmt, ...) + ATTRIBUTE_PRINTF (1, 2); #endif /* COMMON_COMMON_EXCEPTIONS_H */ |