gdb/
* cli/cli-cmds.h (error_no_arg): Remove. Move the comment ... * command.h (error_no_arg): ... here. Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * defs.h (NORETURN, ATTR_NORETURN): Remove. (perror_with_name, verror, error, error_stream, vfatal, fatal) (internal_verror, internal_error, nomem): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror) (throw_vfatal, throw_error): Remove NORETURN. (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * exceptions.h (throw_exception, throw_verror, throw_vfatal) (throw_error, deprecated_throw_reason): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN for prototype, for the definition only remove NORETURN. * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN. * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to ATTRIBUTE_NORETURN. * target.c (tcomplain): Likewise. * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror) (internal_error, perror_with_name, nomem): Remove NORETURN. * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to ATTRIBUTE_NORETURN. gdb/doc/ * gdbint.texinfo (Host Definition): Remove items NORETURN and ATTR_NORETURN.
This commit is contained in:
parent
a0b31db1be
commit
c25c4a8b0e
15 changed files with 91 additions and 99 deletions
|
@ -210,7 +210,7 @@ exceptions_state_mc_action_iter_1 (void)
|
|||
|
||||
/* Return EXCEPTION to the nearest containing catch_errors(). */
|
||||
|
||||
NORETURN void
|
||||
void
|
||||
throw_exception (struct gdb_exception exception)
|
||||
{
|
||||
struct thread_info *tp = NULL;
|
||||
|
@ -239,7 +239,7 @@ throw_exception (struct gdb_exception exception)
|
|||
|
||||
static char *last_message;
|
||||
|
||||
NORETURN void
|
||||
void
|
||||
deprecated_throw_reason (enum return_reason reason)
|
||||
{
|
||||
struct gdb_exception exception;
|
||||
|
@ -374,7 +374,7 @@ print_any_exception (struct ui_file *file, const char *prefix,
|
|||
}
|
||||
}
|
||||
|
||||
NORETURN static void ATTR_NORETURN ATTRIBUTE_PRINTF (3, 0)
|
||||
static void ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (3, 0)
|
||||
throw_it (enum return_reason reason, enum errors error, const char *fmt,
|
||||
va_list ap)
|
||||
{
|
||||
|
@ -396,19 +396,19 @@ throw_it (enum return_reason reason, enum errors error, const char *fmt,
|
|||
throw_exception (e);
|
||||
}
|
||||
|
||||
NORETURN void
|
||||
void
|
||||
throw_verror (enum errors error, const char *fmt, va_list ap)
|
||||
{
|
||||
throw_it (RETURN_ERROR, error, fmt, ap);
|
||||
}
|
||||
|
||||
NORETURN void
|
||||
void
|
||||
throw_vfatal (const char *fmt, va_list ap)
|
||||
{
|
||||
throw_it (RETURN_QUIT, GDB_NO_ERROR, fmt, ap);
|
||||
}
|
||||
|
||||
NORETURN void
|
||||
void
|
||||
throw_error (enum errors error, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue