diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-06-25 21:38:20 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-06-25 21:39:29 -0400 |
commit | 6a72dbb692efa28ac732e7a5584229dad3aeb317 (patch) | |
tree | 934c53fb48cb32fc59c9c61a3c851e3a47848bd3 /gdb/ChangeLog | |
parent | 4c0ba02a749d84a7e569e010fca9f640c30d17df (diff) | |
download | fsf-binutils-gdb-6a72dbb692efa28ac732e7a5584229dad3aeb317.zip fsf-binutils-gdb-6a72dbb692efa28ac732e7a5584229dad3aeb317.tar.gz fsf-binutils-gdb-6a72dbb692efa28ac732e7a5584229dad3aeb317.tar.bz2 |
gdb/guile: use return values of add_setshow functions in add_setshow_generic
Use the set_show_commands objects returned by the add_setshow functions
in add_setshow_generic. This lets us avoid looking up the commands
after creating them, instead using the return objects directly.
Make add_setshow_generic return a set_show_commands object, which is a
bit nicer than returning both commands by parameter.
Finally, store using that object in param_smob.
Equivalent of 7bd22f56a3cf ("gdb/python: use return values of
add_setshow functions in add_setshow_generic"), but for guile.
gdb/ChangeLog:
* guile/scm-param.c (struct param_smob) <set_command,
show_command>: Remove.
<commands>: New.
(pascm_is_valid): Adjust.
(add_setshow_generic): Use return values of add_setshow
functions, return a set_show_commands.
(gdbscm_register_parameter_x): Adjust.
Change-Id: I18ed9e7dd5646529491c86749a5cb20763acd1f0
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9acde12..14d4a9e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca> + * guile/scm-param.c (struct param_smob) <set_command, + show_command>: Remove. + <commands>: New. + (pascm_is_valid): Adjust. + (add_setshow_generic): Use return values of add_setshow + functions, return a set_show_commands. + (gdbscm_register_parameter_x): Adjust. + +2021-06-25 Simon Marchi <simon.marchi@polymtl.ca> + * command.h (add_setshow_enum_cmd): Remove context parameter. * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't set context. |