mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
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:
@@ -2209,12 +2209,12 @@ void _initialize_cp_support ();
|
||||
void
|
||||
_initialize_cp_support ()
|
||||
{
|
||||
add_basic_prefix_cmd ("cplus", class_maintenance,
|
||||
_("C++ maintenance commands."),
|
||||
&maint_cplus_cmd_list,
|
||||
0, &maintenancelist);
|
||||
add_alias_cmd ("cp", "cplus",
|
||||
class_maintenance, 1,
|
||||
cmd_list_element *maintenance_cplus
|
||||
= add_basic_prefix_cmd ("cplus", class_maintenance,
|
||||
_("C++ maintenance commands."),
|
||||
&maint_cplus_cmd_list,
|
||||
0, &maintenancelist);
|
||||
add_alias_cmd ("cp", maintenance_cplus, class_maintenance, 1,
|
||||
&maintenancelist);
|
||||
|
||||
add_cmd ("first_component",
|
||||
|
||||
Reference in New Issue
Block a user