aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-06-25 21:35:40 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-06-25 21:35:40 -0400
commit0f8e2034128e4a73e02cb8311eeeea7e886a5985 (patch)
tree609b9baf7a5f167daa28b0341743aa650677f28a /gdb/command.h
parentac2d77c6a102ca785aae565aec93a3478a9f4544 (diff)
downloadgdb-0f8e2034128e4a73e02cb8311eeeea7e886a5985.zip
gdb-0f8e2034128e4a73e02cb8311eeeea7e886a5985.tar.gz
gdb-0f8e2034128e4a73e02cb8311eeeea7e886a5985.tar.bz2
gdb: add context getter/setter to cmd_list_element
Straightforward replacement of get_cmd_context / set_cmd_context with cmd_list_element methods. gdb/ChangeLog: * cli/cli-decode.h (struct cmd_list_element) <set_context, context>: New. <context>: Rename to... <m_context>: ... this. * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove. * command.h (set_cmd_context, get_cmd_context): Remove, use cmd_list_element::set_context and cmd_list_element::context everywhere instead. Change-Id: I5016b0079014e3f17d1aa449ada7954473bf2b5d
Diffstat (limited to 'gdb/command.h')
-rw-r--r--gdb/command.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/command.h b/gdb/command.h
index f8988e4..9413a50 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -253,12 +253,6 @@ extern void set_cmd_completer_handle_brkchars (struct cmd_list_element *,
extern int cmd_cfunc_eq (struct cmd_list_element *cmd,
cmd_const_cfunc_ftype *cfun);
-/* Each command object has a local context attached to it. */
-extern void set_cmd_context (struct cmd_list_element *cmd,
- void *context);
-extern void *get_cmd_context (struct cmd_list_element *cmd);
-
-
/* Execute CMD's pre/post hook. Throw an error if the command fails.
If already executing this pre/post hook, or there is no pre/post
hook, the call is silently ignored. */