2005-01-12 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Wed, 12 Jan 2005 18:31:35 +0000 (18:31 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 12 Jan 2005 18:31:35 +0000 (18:31 +0000)
commit60250e8b18a4dee75e82d49da715681d41561b3b
tree38e4790e8b98f3dddfa03cec65e91a4f06c14292
parentf05692463ca14b5fb6bbe4e207db0b2c73da963b
2005-01-12  Andrew Cagney  <cagney@gnu.org>

* exceptions.h (enum return_reason, RETURN_MASK)
(RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL)
(return_mask, throw_exception, catch_exceptions_ftype)
(catch_exceptions_with_msg, catch_errors_ftype, catch_errors)
(catch_command_errors_ftype, catch_command_errors): Move to
exceptions.h.
* exceptions.c, exceptions.h: New files.
* top.c: Do not include <setjmp.h>.
(SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, catch_return)
(throw_exception, catcher, catch_exceptions)
(catch_exceptions_with_msg, struct catch_errors_args)
(do_catch_errors, catch_errors, struct captured_command_args)
(do_captured_command, catch_command_errors): Move to exceptions.c.
* wrapper.c, wince.c, win32-nat.c, utils.c: Include "exceptions.h".
* tui/tui-interp.c, top.c, thread.c, symmisc.c: Ditto.
* symfile-mem.c, stack.c, solib.c, rs6000-nat.c: Ditto.
* remote-sds.c, remote-mips.c, remote-fileio.c: Ditto.
* remote-e7000.c, objc-lang.c, ocd.c: Ditto.
* remote.c, nto-procfs.c, monitor.c, mi/mi-main.c: Ditto.
* main.c, m32r-rom.c, infrun.c, inf-loop.c: Ditto.
* hppa-hpux-tdep.c, frame.c, event-top.c, event-loop.c: Ditto.
* corelow.c, corefile.c, cli/cli-interp.c, breakpoint.c: Ditto.
* ada-valprint.c, ada-lang.c: Ditto.
* Makefile.in (HFILES_NO_SRCDIR, COMMON_OBS): Add exceptions.h and
exceptions.o.  Update all dependencies.
42 files changed:
gdb/ChangeLog
gdb/Makefile.in
gdb/ada-lang.c
gdb/ada-valprint.c
gdb/breakpoint.c
gdb/cli/cli-interp.c
gdb/corefile.c
gdb/corelow.c
gdb/defs.h
gdb/event-loop.c
gdb/event-top.c
gdb/exceptions.c [new file with mode: 0644]
gdb/exceptions.h [new file with mode: 0644]
gdb/frame.c
gdb/hppa-hpux-tdep.c
gdb/inf-loop.c
gdb/infrun.c
gdb/m32r-rom.c
gdb/main.c
gdb/mi/mi-main.c
gdb/monitor.c
gdb/nto-procfs.c
gdb/objc-lang.c
gdb/ocd.c
gdb/remote-e7000.c
gdb/remote-fileio.c
gdb/remote-mips.c
gdb/remote-sds.c
gdb/remote.c
gdb/rs6000-nat.c
gdb/solib.c
gdb/stack.c
gdb/symfile-mem.c
gdb/symmisc.c
gdb/thread.c
gdb/top.c
gdb/tui/tui-interp.c
gdb/utils.c
gdb/win32-nat.c
gdb/wince.c
gdb/windows-nat.c
gdb/wrapper.c