diff options
author | Tom Tromey <tromey@redhat.com> | 2011-04-04 18:13:04 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-04-04 18:13:04 +0000 |
commit | 329f7fb393a57742e88d2fa920a36d05260eaa9c (patch) | |
tree | f5f624ca78cab67da35d407149b5218cebc262a9 /gdb/exceptions.h | |
parent | 7f71565092a430e0a7509868b7279497db6f7cbe (diff) | |
download | gdb-329f7fb393a57742e88d2fa920a36d05260eaa9c.tar.gz |
* cli/cli-interp.c (struct captured_execute_command_args):
Remove.
(do_captured_execute_command): Remove.
(safe_execute_command): Use TRY_CATCH.
* cli/cli-script.c (struct wrapped_read_command_file_args):
Remove.
(wrapped_read_command_file): Remove.
(script_from_file): Use TRY_CATCH.
* exceptions.c (catch_exception): Remove.
* exceptions.h (catch_exception): Remove.
(deprecated_throw_reason): Update comment.
* mi/mi-main.c (captured_mi_execute_command): Change 'data'
argument to 'context'.
(mi_execute_command): Use TRY_CATCH.
* remote.c (struct start_remote_args): Remove.
(remote_start_remote): Update; change arguments.
(remote_open_1): Use TRY_CATCH.
Diffstat (limited to 'gdb/exceptions.h')
-rw-r--r-- | gdb/exceptions.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/exceptions.h b/gdb/exceptions.h index b1c45878c15..c1bc605563f 100644 --- a/gdb/exceptions.h +++ b/gdb/exceptions.h @@ -182,8 +182,8 @@ extern void throw_vfatal (const char *fmt, va_list ap) extern void throw_error (enum errors error, const char *fmt, ...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (2, 3); -/* Instead of deprecated_throw_reason, code should use catch_exception - and throw_exception. */ +/* Instead of deprecated_throw_reason, code should use + throw_exception. */ extern void deprecated_throw_reason (enum return_reason reason) ATTRIBUTE_NORETURN; @@ -234,14 +234,6 @@ extern int catch_exceptions_with_msg (struct ui_out *uiout, char **gdberrmsg, return_mask mask); -/* This function, in addition, suppresses the printing of the captured - error message. It's up to the client to print it. */ - -extern struct gdb_exception catch_exception (struct ui_out *uiout, - catch_exception_ftype *func, - void *func_args, - return_mask mask); - /* If CATCH_ERRORS_FTYPE throws an error, catch_errors() returns zero otherwize the result from CATCH_ERRORS_FTYPE is returned. It is probably useful for CATCH_ERRORS_FTYPE to always return a non-zero |