OSDN Git Service

gdb:
authorTom Tromey <tromey@redhat.com>
Sun, 17 Aug 2008 16:58:16 +0000 (16:58 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 17 Aug 2008 16:58:16 +0000 (16:58 +0000)
commit2392f770fef44985763cd1d1c35dff29f4647cb2
tree99a2671f56ecffbeb4d582816bb1b0ab8a38aaae
parentf495880d3c170fcfc49a14481a9147d7f865cacb
gdb:
PR gdb/1535:
* breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
(ep_find_event_name_end): Remove.
(catch_fork_temporary, catch_vfork_temporary,
catch_fork_permanent, catch_vfork_permanent): New constants.
(catch_vfork, catch_fork): Remove.
(catch_fork_command_1): Add 'command' argument.  Remove
'fork_kind' and 'tempflag'.  Handle NULL 'arg'.  Update switch for
all cases.
(catch_exec_command_1): Add 'command' argument; remove
'tempflag'.  Handle NULL 'arg'.
(catch_load_command_1): Likewise.
(catch_unload_command_1): Likewise.
(catch_ada_exception_command): Likewise.
(catch_assert_command): Likewise.
(catch_catch_command): New function.
(catch_throw_command): Likewise.
(catch_command_1): Remove.
(catch_command): Just call error.
(tcatch_command): Likewise.
(catch_cmdlist): New global.
(tcatch_cmdlist): Likewise.
(add_catch_command): New function.
(_initialize_breakpoint): Create "catch" and "tcatch" as prefix
commands.  Create all catch sub-commands.
gdb/testsuite:
* gdb.base/help.exp (help catch): Rewrite.
gdb/ChangeLog
gdb/breakpoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/help.exp