* defs.h (enum return_reason): Renumber so that all values are
authorAndrew Cagney <cagney@redhat.com>
Fri, 7 Sep 2001 21:33:08 +0000 (21:33 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 7 Sep 2001 21:33:08 +0000 (21:33 +0000)
commitf9c696d277e3c63524ddd995edac66fa6770395b
treea39041c72dfa9863d7f747f08c7450927ea98fd6
parenta2e2dd80557cd2493d1d6c454b86dd010da3d0d4
* defs.h (enum return_reason): Renumber so that all values are
negative.
(RETURN_MASK): Negate reason.
(catch_exception_ftype): Declare.
(catch_exceptions): Declare.
* top.c (catcher): New function, based on catch_errors.  Add in
parameter func_uiout and out parameters func_val, func_caught and
func_cleanup.  Change type of func to catch_exceptions_ftype.
Save/restore uiout.
(struct catch_errors_args): Define.
(do_catch_errors): New function.
(catch_errors): Rewrite, use do_catch_errors and catcher.
(catch_exceptions): New function, use catcher.
gdb/ChangeLog
gdb/defs.h
gdb/top.c