OSDN Git Service

2005-01-12 Andrew Cagney <cagney@gnu.org>
authorcagney <cagney>
Thu, 13 Jan 2005 00:12:48 +0000 (00:12 +0000)
committercagney <cagney>
Thu, 13 Jan 2005 00:12:48 +0000 (00:12 +0000)
commit8ecaccdd2b8588bd837d9bb873e3c2e59752329b
tree327c5fd81baadc1b9255719082ae9d16e46e23db
parent6a3f854ceee364355529083a3f66ff9f902853a6
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.
gdb/breakpoint.c
gdb/exceptions.c
gdb/exceptions.h
gdb/remote-fileio.c
gdb/remote.c
gdb/utils.c