aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-09-06 14:03:38 -0600
committerTom Tromey <tom@tromey.com>2018-12-28 12:49:47 -0700
commit7170dadf5950e1444ab09cdfc4e07dd2698fc275 (patch)
tree7435599708c2b9336a519325a7c51dc06b2cbee9 /gdb/command.h
parentc5603d506350cca3b1af7ba3a97bf05adeea0508 (diff)
downloadfsf-binutils-gdb-7170dadf5950e1444ab09cdfc4e07dd2698fc275.zip
fsf-binutils-gdb-7170dadf5950e1444ab09cdfc4e07dd2698fc275.tar.gz
fsf-binutils-gdb-7170dadf5950e1444ab09cdfc4e07dd2698fc275.tar.bz2
Add a "context" argument to add_setshow_enum_cmd
This adds a "context" argument to add_setshow_enum_cmd. Now add_setshow_enum_cmd will call set_cmd_context on both of the new commands. This is used in a later patch. gdb/ChangeLog 2018-12-28 Tom Tromey <tom@tromey.com> * command.h (add_setshow_enum_cmd): Add "context" argument. * cli/cli-decode.c (add_setshow_enum_cmd): Add "context" argument. Call set_cmd_context.
Diffstat (limited to 'gdb/command.h')
-rw-r--r--gdb/command.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/command.h b/gdb/command.h
index e3d55c2..6851440 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -314,7 +314,8 @@ extern void add_setshow_enum_cmd (const char *name,
cmd_const_sfunc_ftype *set_func,
show_value_ftype *show_func,
struct cmd_list_element **set_list,
- struct cmd_list_element **show_list);
+ struct cmd_list_element **show_list,
+ void *context = nullptr);
extern void add_setshow_auto_boolean_cmd (const char *name,
enum command_class theclass,