aboutsummaryrefslogtreecommitdiff
path: root/gdb/exceptions.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-04-04 18:13:05 +0000
committerTom Tromey <tromey@redhat.com>2011-04-04 18:13:05 +0000
commit04bd08de86a7768754137e2c03fa92c3af0140b0 (patch)
treed275abdef7ef5a3c1f37ec246201f12e417d6f16 /gdb/exceptions.h
parent58438ac18761353e6d8461c914992071d4fcb1d3 (diff)
downloadgdb-04bd08de86a7768754137e2c03fa92c3af0140b0.zip
gdb-04bd08de86a7768754137e2c03fa92c3af0140b0.tar.gz
gdb-04bd08de86a7768754137e2c03fa92c3af0140b0.tar.bz2
* 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.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/exceptions.h b/gdb/exceptions.h
index b1c4587..c1bc605 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