diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-01-13 00:12:50 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-01-13 00:12:50 +0000 |
commit | cdb2edd3ee4edafd355073ad21d5fdfc1b6dee7a (patch) | |
tree | 4c90a0d1b70b2652d33fa1cf43b0811fcc613964 /gdb/breakpoint.c | |
parent | cbb310a5f332ba2acf9a266910166b7601440d7e (diff) | |
download | gdb-cdb2edd3ee4edafd355073ad21d5fdfc1b6dee7a.tar.gz |
2005-01-12 Andrew Cagney <cagney@gnu.org>
* 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.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 77eae5542cf..b05bf4ec34b 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -734,7 +734,7 @@ insert_catchpoint (struct ui_out *uo, void *args) } if (val < 0) - throw_exception (RETURN_ERROR); + throw_reason (RETURN_ERROR); return 0; } @@ -5153,7 +5153,7 @@ break_command_1 (char *arg, int flag, int from_tty, struct breakpoint *pending_b /* If pending breakpoint support is turned off, throw error. */ if (pending_break_support == AUTO_BOOLEAN_FALSE) - throw_exception (RETURN_ERROR); + throw_reason (RETURN_ERROR); /* If pending breakpoint support is auto query and the user selects no, then simply return the error code. */ |