diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-06-25 21:38:25 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-06-25 21:39:26 -0400 |
commit | 4c0ba02a749d84a7e569e010fca9f640c30d17df (patch) | |
tree | db5935ef09b75752a45b41f724d63e0c1c7d6c69 /include/xregex.h | |
parent | d6ff04a343f97026f7d23bb036e0f858b21f3bfd (diff) | |
download | gdb-4c0ba02a749d84a7e569e010fca9f640c30d17df.zip gdb-4c0ba02a749d84a7e569e010fca9f640c30d17df.tar.gz gdb-4c0ba02a749d84a7e569e010fca9f640c30d17df.tar.bz2 |
gdb: remove context parameter from add_setshow_enum_cmd
I propose removing the context parameter from add_setshow_enum_cmd. It
was useful before add_setshow_enum_cmd returned both created commands,
as the caller couldn't easily set the context itself. But now, I think
it's fine to just let the caller do it.
gdb/ChangeLog:
* command.h (add_setshow_enum_cmd): Remove context parameter.
* cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
set context.
* cli/cli-style.c (cli_style_option::add_setshow_commands): Set
context here.
Change-Id: I377c4e6820ec9d5069492ed28f4cba342ce1336e
Diffstat (limited to 'include/xregex.h')
0 files changed, 0 insertions, 0 deletions