From 2a78bfb53ccd6d78e97293502ae0b41ce4d120a5 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 13 Jan 2005 00:12:50 +0000 Subject: 2005-01-12 Andrew Cagney * exceptions.h (throw_reason): Rename throw_exception. (enum errors, struct exception): Define. (catch_exception_ftype): Define. (catch_exception, throw_exception): Declare. * exceptions.c (throw_exception): Rewrite. (throw_reason): New function. (struct catcher, catcher_state_machine): Replace "reason" with "exception", delete "gdberrmsg". (catch_exception): New function. (catcher_init): Replace "gdberrmsg" parameter with "exception". (catch_errors, catch_exceptions_with_msg): Re-implement passing exception to catcher_init. * utils.c (error_silent, error_stream_1): Use throw_reason. (internal_verror, quit): Ditto. * breakpoint.c (insert_catchpoint, break_command_1): Ditto. * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Ditto. * remote.c (remote_open_1, interrupt_query): Ditto. --- gdb/utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/utils.c') diff --git a/gdb/utils.c b/gdb/utils.c index 17c2e5e..a42939fd 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -674,7 +674,7 @@ error_silent (const char *string, ...) ui_file_put (tmp_stream, do_write, gdb_lasterr); va_end (args); - throw_exception (RETURN_ERROR); + throw_reason (RETURN_ERROR); } /* Output an error message including any pre-print text to gdb_stderr. */ @@ -711,7 +711,7 @@ error_stream_1 (struct ui_file *stream, enum return_reason reason) ui_file_put (stream, do_write, gdb_stderr); fprintf_filtered (gdb_stderr, "\n"); - throw_exception (reason); + throw_reason (reason); } NORETURN void @@ -866,7 +866,7 @@ NORETURN void internal_verror (const char *file, int line, const char *fmt, va_list ap) { internal_vproblem (&internal_error_problem, file, line, fmt, ap); - throw_exception (RETURN_ERROR); + throw_reason (RETURN_ERROR); } NORETURN void @@ -1007,7 +1007,7 @@ quit (void) fprintf_unfiltered (gdb_stderr, "Quit (expect signal SIGINT when the program is resumed)\n"); #endif - throw_exception (RETURN_QUIT); + throw_reason (RETURN_QUIT); } /* Control C comes here */ -- cgit v1.1