diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-27 13:59:01 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-27 14:00:08 -0400 |
commit | 5e84b7eefba5b4299b0ca80aecc5d4e99c195c1e (patch) | |
tree | 65d675353e6cb9f90711947244a8f78d156f7021 /gdb/mips-tdep.c | |
parent | e0f25bd9717c7973197095523db7c1cdc956cea2 (diff) | |
download | gdb-5e84b7eefba5b4299b0ca80aecc5d4e99c195c1e.zip gdb-5e84b7eefba5b4299b0ca80aecc5d4e99c195c1e.tar.gz gdb-5e84b7eefba5b4299b0ca80aecc5d4e99c195c1e.tar.bz2 |
gdb: remove add_alias_cmd overload that accepts a string
Same idea as previous patch, but for add_alias_cmd. Remove the overload
that accepts the target command as a string (the target command name),
leaving only the one that takes the cmd_list_element.
gdb/ChangeLog:
* command.h (add_alias_cmd): Accept target as
cmd_list_element. Update callers.
Change-Id: I546311f411e9e7da9302322d6ffad4e6c56df266
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 2fe8332..31cac93 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -8994,17 +8994,20 @@ and is updated automatically from ELF file flags if available."), add_cmd ("single", class_support, set_mipsfpu_single_command, _("Select single-precision MIPS floating-point coprocessor."), &mipsfpulist); - add_cmd ("double", class_support, set_mipsfpu_double_command, - _("Select double-precision MIPS floating-point coprocessor."), - &mipsfpulist); - add_alias_cmd ("on", "double", class_support, 1, &mipsfpulist); - add_alias_cmd ("yes", "double", class_support, 1, &mipsfpulist); - add_alias_cmd ("1", "double", class_support, 1, &mipsfpulist); - add_cmd ("none", class_support, set_mipsfpu_none_command, - _("Select no MIPS floating-point coprocessor."), &mipsfpulist); - add_alias_cmd ("off", "none", class_support, 1, &mipsfpulist); - add_alias_cmd ("no", "none", class_support, 1, &mipsfpulist); - add_alias_cmd ("0", "none", class_support, 1, &mipsfpulist); + cmd_list_element *set_mipsfpu_double_cmd + = add_cmd ("double", class_support, set_mipsfpu_double_command, + _("Select double-precision MIPS floating-point coprocessor."), + &mipsfpulist); + add_alias_cmd ("on", set_mipsfpu_double_cmd, class_support, 1, &mipsfpulist); + add_alias_cmd ("yes", set_mipsfpu_double_cmd, class_support, 1, &mipsfpulist); + add_alias_cmd ("1", set_mipsfpu_double_cmd, class_support, 1, &mipsfpulist); + + cmd_list_element *set_mipsfpu_none_cmd + = add_cmd ("none", class_support, set_mipsfpu_none_command, + _("Select no MIPS floating-point coprocessor."), &mipsfpulist); + add_alias_cmd ("off", set_mipsfpu_none_cmd, class_support, 1, &mipsfpulist); + add_alias_cmd ("no", set_mipsfpu_none_cmd, class_support, 1, &mipsfpulist); + add_alias_cmd ("0", set_mipsfpu_none_cmd, class_support, 1, &mipsfpulist); add_cmd ("auto", class_support, set_mipsfpu_auto_command, _("Select MIPS floating-point coprocessor automatically."), &mipsfpulist); |