From 315a522ef2ae8795eef052cf2ab94eb973e24424 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 19 Jan 2005 21:15:44 +0000 Subject: 2005-01-19 Andrew Cagney * exceptions.h (deprecated_throw_reason): Rename throw_reason. * exceptions.c (deprecated_throw_reason): Rename throw_reason. * utils.c (internal_verror, quit): Update. * remote-sds.c (interrupt_query): Update. * remote-mips.c (mips_error, mips_kill): Update. * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Update. * remote.c (interrupt_query): Update. * ocd.c (interrupt_query): Update. * nto-procfs.c (interrupt_query): Update. * monitor.c (monitor_interrupt_query): Update. * breakpoint.c (break_command_1): Update. --- gdb/exceptions.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/exceptions.h') diff --git a/gdb/exceptions.h b/gdb/exceptions.h index fddaf37..fe19ecd 100644 --- a/gdb/exceptions.h +++ b/gdb/exceptions.h @@ -85,13 +85,16 @@ extern void exception_fprintf (struct ui_file *file, struct exception e, Wombat. */ 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_error (enum errors error, const char *fmt, ...) ATTR_NORETURN ATTR_FORMAT (printf, 2, 3); +/* Instead of deprecated_throw_reason, code should use catch_exception + and throw_exception. */ +extern NORETURN void deprecated_throw_reason (enum return_reason reason) ATTR_NORETURN; + /* Call FUNC(UIOUT, FUNC_ARGS) but wrapped within an exception handler. If an exception (enum return_reason) is thrown using throw_exception() than all cleanups installed since -- cgit v1.1