X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ffilesystem.c;h=5414ac2656a86248aeb5796efcf5b40a1b096529;hb=795afcbbb4b6c9a47597b9da57221b1bf9fdc88f;hp=38a597d64bef34e5dc30376dd55f5fc5a99fdb37;hpb=ab38a727c990476872ac4995792fc0d38d922d7f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/filesystem.c b/gdb/filesystem.c index 38a597d64b..5414ac2656 100644 --- a/gdb/filesystem.c +++ b/gdb/filesystem.c @@ -1,6 +1,6 @@ /* Handle different target file systems for GDB, the GNU Debugger. - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2018 Free Software Foundation, Inc. This file is part of GDB. @@ -25,7 +25,7 @@ const char file_system_kind_auto[] = "auto"; const char file_system_kind_unix[] = "unix"; const char file_system_kind_dos_based[] = "dos-based"; -const char *target_file_system_kinds[] = +const char *const target_file_system_kinds[] = { file_system_kind_auto, file_system_kind_unix, @@ -39,7 +39,7 @@ effective_target_file_system_kind (void) { if (target_file_system_kind == file_system_kind_auto) { - if (gdbarch_has_dos_based_file_system (target_gdbarch)) + if (gdbarch_has_dos_based_file_system (target_gdbarch ())) return file_system_kind_dos_based; else return file_system_kind_unix; @@ -76,9 +76,6 @@ is \"%s\".\n"), value); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_filesystem; - void _initialize_filesystem (void) { @@ -89,13 +86,13 @@ _initialize_filesystem (void) Set assumed file system kind for target reported file names"), _("\ Show assumed file system kind for target reported file names"), _("\ -If `unix', target file names (e.g., loaded shared library file names) \n\ -starting the forward slash (`/') character are considered absolute, \n\ -and the directory separator character is the forward slash (`/'). If \n\ -`dos-based', target file names starting with a drive letter followed \n\ -by a colon (e.g., `c:'), are also considered absolute, and the \n\ -backslash (`\\') is also considered a directory separator. Set to \n\ -`auto' (which is the default), to let GDB decide, based on its \n\ +If `unix', target file names (e.g., loaded shared library file names)\n\ +starting the forward slash (`/') character are considered absolute,\n\ +and the directory separator character is the forward slash (`/'). If\n\ +`dos-based', target file names starting with a drive letter followed\n\ +by a colon (e.g., `c:'), are also considered absolute, and the\n\ +backslash (`\\') is also considered a directory separator. Set to\n\ +`auto' (which is the default), to let GDB decide, based on its\n\ knowledge of the target operating system."), NULL, /* setfunc */ show_target_file_system_kind_command,