2005-01-12 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Wed, 12 Jan 2005 19:12:29 +0000 (19:12 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 12 Jan 2005 19:12:29 +0000 (19:12 +0000)
commitdb5f402d40beac21d890e4b0b8ec85c17ec4c562
tree420cbdf14ed63d575bb713533b0ea131136410e4
parent60250e8b18a4dee75e82d49da715681d41561b3b
2005-01-12  Andrew Cagney  <cagney@gnu.org>

* exceptions.c: Include "gdb_string.h".
(enum catcher_state, struct catcher): Define.
(current_catcher): New global, replaces catch_return;
(catch_return): Delete.
(throw_exception): Use current_catcher->buf;
(catcher_init, catcher_pop, catcher_state_machine): New functions.
(catcher): Delete.
(struct catch_errors_args): Delete.
(do_catch_errors): Delete.
(catch_exceptions): Replace body with call to
catch_exceptions_with_msg.
(catcher): Delete.
(catch_exceptions_with_msg, catch_errors): Re-implement using
catcher_state_machine.
gdb/ChangeLog
gdb/exceptions.c