From c1043fc2c19efe25b2b183a7c550d5ba85d4c0e6 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 13 Jan 2005 02:35:39 +0000 Subject: 2005-01-12 Andrew Cagney * exceptions.c (exception_none): New variable. * Makefile.in: Update dependencies. * interps.c: Include "exceptions.h". (interpreter_exec_cmd, interp_exec): Update to return "struct exception" * exceptions.h (no_exception): Declare. * tui/tui-interp.c (tui_exec): Update to return "struct exception" * mi/mi-interp.c: Include "exceptions.h". (mi_cmd_interpreter_exec, mi_interpreter_exec): Update to return 'struct exception". * cli/cli-interp.c (cli_interpreter_exec, safe_execute_command) (do_captured_execute_command): Update to use catch_exception. * interps.h: Include "exceptions.h". (interp_exec_ftype, interp_exec): Return "struct exception". --- gdb/exceptions.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/exceptions.h') diff --git a/gdb/exceptions.h b/gdb/exceptions.h index b5d8fd5..fedd405 100644 --- a/gdb/exceptions.h +++ b/gdb/exceptions.h @@ -62,6 +62,9 @@ struct exception char *message; }; +/* A pre-defined non-exception. */ +extern const struct exception exception_none; + /* Throw an exception (as described by "struct exception"). Will execute a LONG JUMP to the inner most containing exception handler established using catch_exceptions() (or similar). -- cgit v1.1