From 6b1b7650d16705f3ea52681cf30798e91546de78 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 14 Jan 2005 01:20:38 +0000 Subject: 2005-01-13 Andrew Cagney * defs.h (error_last_message, error_init): Delete declaration. * utils.c (fatal, vfatal): Call throw_vfatal. (error, verror): Call throw_verror; (do_write, error_stream_1): Delete function. (error_stream): Simplify, call error. (error_last_message, error_init, gdb_lasterr): Delete. (error_silent): Simplify, call throw_vsilent. * mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message. * main.c (captured_main): Delete call to error_init. * exceptions.c (throw_verror, throw_verror) (throw_vsilent): New functions. (do_write, print_and_throw): New functions. (last_message): New global. (throw_reason): Replace error_last_message with last_message. (catch_exceptions_with_msg): Dup the message. * exceptions.h (throw_verror, throw_vfatal, throw_vsilent): Declare. --- gdb/exceptions.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/exceptions.h') diff --git a/gdb/exceptions.h b/gdb/exceptions.h index fedd405cd57..d6c4ffcebcf 100644 --- a/gdb/exceptions.h +++ b/gdb/exceptions.h @@ -78,6 +78,10 @@ extern const struct exception exception_none; extern NORETURN void throw_exception (struct exception exception) ATTR_NORETURN; extern NORETURN void throw_reason (enum return_reason reason) ATTR_NORETURN; +extern NORETURN void throw_verror (enum errors, const char *fmt, + va_list ap) ATTR_NORETURN; +extern NORETURN void throw_vfatal (const char *fmt, va_list ap) ATTR_NORETURN; +extern NORETURN void throw_vsilent (const char *fmt, va_list ap) ATTR_NORETURN; /* Call FUNC(UIOUT, FUNC_ARGS) but wrapped within an exception -- cgit v1.2.1