forked from Imagelibrary/binutils-gdb
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
This commit is contained in:
@@ -780,15 +780,17 @@ This command is only a placeholder.")
|
||||
);
|
||||
add_com_alias ("gu", guile_cmd_element, class_obscure, 1);
|
||||
|
||||
add_basic_prefix_cmd ("guile", class_obscure,
|
||||
_("Prefix command for Guile preference settings."),
|
||||
&set_guile_list, 0, &setlist);
|
||||
add_alias_cmd ("gu", "guile", class_obscure, 1, &setlist);
|
||||
cmd_list_element *set_guile_cmd
|
||||
= add_basic_prefix_cmd ("guile", class_obscure,
|
||||
_("Prefix command for Guile preference settings."),
|
||||
&set_guile_list, 0, &setlist);
|
||||
add_alias_cmd ("gu", set_guile_cmd, class_obscure, 1, &setlist);
|
||||
|
||||
add_show_prefix_cmd ("guile", class_obscure,
|
||||
_("Prefix command for Guile preference settings."),
|
||||
&show_guile_list, 0, &showlist);
|
||||
add_alias_cmd ("gu", "guile", class_obscure, 1, &showlist);
|
||||
cmd_list_element *show_guile_cmd
|
||||
= add_show_prefix_cmd ("guile", class_obscure,
|
||||
_("Prefix command for Guile preference settings."),
|
||||
&show_guile_list, 0, &showlist);
|
||||
add_alias_cmd ("gu", show_guile_cmd, class_obscure, 1, &showlist);
|
||||
|
||||
cmd_list_element *info_guile_cmd
|
||||
= add_basic_prefix_cmd ("guile", class_obscure,
|
||||
|
||||
Reference in New Issue
Block a user