/* Throws an error telling the user that ARGS starts with an option
unrecognized by COMMAND. */
-extern void report_unrecognized_option_error (const char *command,
- const char *args);
+[[noreturn]] extern void report_unrecognized_option_error (const char *command,
+ const char *args);
/* Builds the help string for a command documented by PREFIX,
/* Helper function which throws an error if a synthetic pointer is
invalid. */
-extern void invalid_synthetic_pointer ();
+[[noreturn]] extern void invalid_synthetic_pointer ();
/* Fetch the value pointed to by a synthetic pointer. */
/* Control C eventually causes this to be called, at a convenient time. */
-extern void quit ();
+[[noreturn]] extern void quit ();
/* Helper for the QUIT macro. */
/* Report a "No executable file specified" error. */
-extern void no_executable_specified_error ();
+[[noreturn]] extern void no_executable_specified_error ();
#endif /* GDB_EXEC_H */
extern int ext_lang_initialized_p (const struct extension_language_defn *);
-extern void throw_ext_lang_unsupported
+[[noreturn]] extern void throw_ext_lang_unsupported
(const struct extension_language_defn *);
/* Accessors for "public" attributes of the extension language definition. */
/* Report a memory error with error(). */
-extern void memory_error (enum target_xfer_status status, CORE_ADDR memaddr);
+[[noreturn]] extern void memory_error (enum target_xfer_status status,
+ CORE_ADDR memaddr);
/* The string 'memory_error' would use as exception message. */
function to be included in the error message; may be NULL, in which
case the error message doesn't include a function name. */
-extern void error_call_unknown_return_type (const char *func_name);
+[[noreturn]] extern void error_call_unknown_return_type
+ (const char *func_name);
#endif /* GDB_INFCALL_H */
/* Function called from the various parsers' yyerror functions to throw
an error. The error will include a message identifying the location
of the error within the current expression. */
- void parse_error (const char *msg);
+ [[noreturn]] void parse_error (const char *msg);
/* If this is nonzero, this block is used as the lexical context for
symbol names. */
/* Throw an error indicating that the user tried to use a symbol that
has unknown type. SYM_PRINT_NAME is the name of the symbol, to be
included in the error message. */
-extern void error_unknown_type (const char *sym_print_name);
+[[noreturn]] extern void error_unknown_type (const char *sym_print_name);
extern void val_print_not_allocated (struct ui_file *stream);
/* Dump core trying to increase the core soft limit to hard limit
first. */
-extern void dump_core (void);
+[[noreturn]] extern void dump_core ();
/* Copy NBITS bits from SOURCE to DEST starting at the given bit
offsets. Use the bit order as specified by BITS_BIG_ENDIAN.
/* Throw an error complaining that the value has been optimized
out. */
-extern void error_value_optimized_out (void);
+[[noreturn]] extern void error_value_optimized_out ();
/* Pointer to internal variable. */
#define VALUE_INTERNALVAR(val) (*((val)->deprecated_internalvar_hack ()))