Make the "info dll" command available on all platform.

The "info dll", an alias of the "info sharedlibrary" command, is
currently only defined in windows native versions. This patch makes
it universally available by moving the alias declaration to solib.c,
and adjusts the documentation accordingly.

Making it universally available has two benefits:
  - Windows users moving to a Unix platforms are still able to use
    the same command for getting the list of shared libraries;
  - Unix to Windows cross debuggers now provide that command also.

gdb/ChangeLog:

        * solib.c (_initialize_solib): Add "info dll" alias creation.
        * windows-nat.c (set_windows_aliases): Delete.
        (_initialize_windows_nat): Remove deprecated_init_ui_hook
        assignment.
        * NEWS: Add news entry about "info dll" now being available
        on all platforms.

gdb/doc/ChangeLog:

        * gdb.texinfo (Files): Add "info dll" documentation.
        (Cygwin Native): Remove "info dll" documentation.
This commit is contained in:
Joel Brobecker
2015-05-02 04:46:47 -07:00
parent 0d495746bb
commit b30a0bc387
6 changed files with 22 additions and 11 deletions

View File

@@ -2502,12 +2502,6 @@ windows_target (void)
return t;
}
static void
set_windows_aliases (char *argv0)
{
add_info_alias ("dll", "sharedlibrary", 1);
}
/* -Wmissing-prototypes */
extern initialize_file_ftype _initialize_windows_nat;
@@ -2601,7 +2595,6 @@ Show whether to display kernel exceptions in child process."), NULL,
add_cmd ("selector", class_info, display_selectors,
_("Display selectors infos."),
&info_w32_cmdlist);
deprecated_init_ui_hook = set_windows_aliases;
}
/* Hardware watchpoint support, adapted from go32-nat.c code. */