OLD | NEW |
1 /* Handle different target file systems for GDB, the GNU Debugger. | 1 /* Handle different target file systems for GDB, the GNU Debugger. |
2 | 2 |
3 Copyright (C) 2010-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2010-2012 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GDB. | 5 This file is part of GDB. |
6 | 6 |
7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
11 | 11 |
12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 GNU General Public License for more details. | 15 GNU General Public License for more details. |
16 | 16 |
17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
19 | 19 |
20 #include "defs.h" | 20 #include "defs.h" |
21 #include "filesystem.h" | 21 #include "filesystem.h" |
22 #include "gdbarch.h" | 22 #include "gdbarch.h" |
23 #include "gdbcmd.h" | 23 #include "gdbcmd.h" |
24 | 24 |
25 const char file_system_kind_auto[] = "auto"; | 25 const char file_system_kind_auto[] = "auto"; |
26 const char file_system_kind_unix[] = "unix"; | 26 const char file_system_kind_unix[] = "unix"; |
27 const char file_system_kind_dos_based[] = "dos-based"; | 27 const char file_system_kind_dos_based[] = "dos-based"; |
28 const char *target_file_system_kinds[] = | 28 const char *const target_file_system_kinds[] = |
29 { | 29 { |
30 file_system_kind_auto, | 30 file_system_kind_auto, |
31 file_system_kind_unix, | 31 file_system_kind_unix, |
32 file_system_kind_dos_based, | 32 file_system_kind_dos_based, |
33 NULL | 33 NULL |
34 }; | 34 }; |
35 const char *target_file_system_kind = file_system_kind_auto; | 35 const char *target_file_system_kind = file_system_kind_auto; |
36 | 36 |
37 const char * | 37 const char * |
38 effective_target_file_system_kind (void) | 38 effective_target_file_system_kind (void) |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 and the directory separator character is the forward slash (`/'). If\n\ | 94 and the directory separator character is the forward slash (`/'). If\n\ |
95 `dos-based', target file names starting with a drive letter followed\n\ | 95 `dos-based', target file names starting with a drive letter followed\n\ |
96 by a colon (e.g., `c:'), are also considered absolute, and the\n\ | 96 by a colon (e.g., `c:'), are also considered absolute, and the\n\ |
97 backslash (`\\') is also considered a directory separator. Set to\n\ | 97 backslash (`\\') is also considered a directory separator. Set to\n\ |
98 `auto' (which is the default), to let GDB decide, based on its\n\ | 98 `auto' (which is the default), to let GDB decide, based on its\n\ |
99 knowledge of the target operating system."), | 99 knowledge of the target operating system."), |
100 NULL, /* setfunc */ | 100 NULL, /* setfunc */ |
101 show_target_file_system_kind_command, | 101 show_target_file_system_kind_command, |
102 &setlist, &showlist); | 102 &setlist, &showlist); |
103 } | 103 } |
OLD | NEW |