* command.h: (execute_cmd_post_hook): Declare.
authorAndrew Cagney <cagney@redhat.com>
Sun, 17 Mar 2002 19:53:39 +0000 (19:53 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 17 Mar 2002 19:53:39 +0000 (19:53 +0000)
commit5913bcb0f6f0e0b63bdbb528cadd0de6887bf7a6
tree3a71d9fbb8b638a854b285a146da693cbe2a903e
parentb51450c9ff9fe4a30bdc760802e69d313345c838
* command.h: (execute_cmd_post_hook): Declare.
(execute_cmd_pre_hook): Declare.
* cli/cli-script.c (clear_hook_in_cleanup): New function.
(execute_cmd_post_hook, execute_cmd_pre_hook): New
functions. Execute pre/post hook while ensuring that afterwords
hook_in is cleared.
* top.c (execute_command): Use execute_cmd_post_hook, and
execute_cmd_pre_hook to execute pre/post commands.
* infrun.c (normal_stop): Pass stop_command and not pre_hook to
hook_stop_stub.
(hook_stop_stub): Call execute_cmd_pre_hook.
gdb/ChangeLog
gdb/cli/cli-script.c
gdb/command.h
gdb/infrun.c
gdb/top.c