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/sparc64-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/sparc64-tdep.c')
-rw-r--r-- | gdb/sparc64-tdep.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c index 3f9600f..4157594 100644 --- a/gdb/sparc64-tdep.c +++ b/gdb/sparc64-tdep.c @@ -535,9 +535,10 @@ _initialize_sparc64_adi_tdep () add_basic_prefix_cmd ("adi", class_support, _("ADI version related commands."), &sparc64adilist, 0, &cmdlist); - add_cmd ("examine", class_support, adi_examine_command, - _("Examine ADI versions."), &sparc64adilist); - add_alias_cmd ("x", "examine", no_class, 1, &sparc64adilist); + cmd_list_element *adi_examine_cmd + = add_cmd ("examine", class_support, adi_examine_command, + _("Examine ADI versions."), &sparc64adilist); + add_alias_cmd ("x", adi_examine_cmd, no_class, 1, &sparc64adilist); add_cmd ("assign", class_support, adi_assign_command, _("Assign ADI versions."), &sparc64adilist); |