OSDN Git Service

2000-11-06 Fernando Nasser <fnasser@cygnus.com>
authorfnasser <fnasser>
Mon, 6 Nov 2000 22:44:32 +0000 (22:44 +0000)
committerfnasser <fnasser>
Mon, 6 Nov 2000 22:44:32 +0000 (22:44 +0000)
commite1f1d43e6d0f59b1e47dacf244a74c905e539368
tree0d158990274983356a45a86e9d0bb3bd9d7d06f5
parent20f92efa0762e9b66a3da95431b5a7262870972a
2000-11-06  Fernando Nasser  <fnasser@cygnus.com>

        From  Steven Johnson  <sbjohnson@ozemail.com.au>:

        This set of changes add "hookpost-" as an expansion on the original
        hooking of commands to GDB. A Hook may now be run "AFTER" execution of
        a command as well as before.

        * command.h (struct cmd_list_element): Changed elements hook and hookee
        to hook_pre and hookee_pre respectively. Added hook_post and hookee_post
        for the post hook command operation. Added hook_in so that an executing
        hook can be flagged to prevent recursion.
        * command.c (add_cmd): Changed initilization of cmd_list_element to
        reflect above changes.
        (delete_cmd): Remove both pre and post hooks.
        (help_cmd): Notify that the command has pre and/or post hooks.
        * infrun.c (normal_stop): Change references to hook_pre from hook.
        * top.c (execute_command): Run both pre and post hooks.
        (define_command): Allow definition of both pre and post hooks.
        The definition of pre-hooks is done as before, with the "hook-"
        prefix for backward compatibility.
gdb/ChangeLog
gdb/command.c
gdb/command.h
gdb/infrun.c
gdb/top.c