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/solib.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/solib.c')
-rw-r--r-- | gdb/solib.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index 5c8e6ca..2df5211 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1585,20 +1585,21 @@ inferior. Otherwise, symbols must be loaded manually, using \ show_auto_solib_add, &setlist, &showlist); - add_setshow_optional_filename_cmd ("sysroot", class_support, - &gdb_sysroot, _("\ + set_show_commands sysroot_cmds + = add_setshow_optional_filename_cmd ("sysroot", class_support, + &gdb_sysroot, _("\ Set an alternate system root."), _("\ Show the current system root."), _("\ The system root is used to load absolute shared library symbol files.\n\ For other (relative) files, you can add directories using\n\ `set solib-search-path'."), - gdb_sysroot_changed, - NULL, - &setlist, &showlist); + gdb_sysroot_changed, + NULL, + &setlist, &showlist); - add_alias_cmd ("solib-absolute-prefix", "sysroot", class_support, 0, + add_alias_cmd ("solib-absolute-prefix", sysroot_cmds.set, class_support, 0, &setlist); - add_alias_cmd ("solib-absolute-prefix", "sysroot", class_support, 0, + add_alias_cmd ("solib-absolute-prefix", sysroot_cmds.show, class_support, 0, &showlist); add_setshow_optional_filename_cmd ("solib-search-path", class_support, |