* command.h (struct cmd_list_element): Add field context.
authorAndrew Cagney <cagney@redhat.com>
Tue, 19 Mar 2002 02:19:17 +0000 (02:19 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 19 Mar 2002 02:19:17 +0000 (02:19 +0000)
commit7d0766f3c30e00dd87a789de68e93eb1df8f24da
treefd21ec664c292791c16e3e6c57af4b2664c1d6d5
parent42aacdb61cdc52f380808edd95940d0502cb38bf
* command.h (struct cmd_list_element): Add field context.
(set_cmd_context, get_cmd_context): Declare.
* cli/cli-decode.h: Ditto.
* cli/cli-decode.c (get_cmd_context): New function.
(set_cmd_context): New function.
(add_cmd): Initialize context.
Part of fixing PR gdb/145 and PR gdb/146.
gdb/ChangeLog
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/command.h