GDB (API)
/home/stan/gdb/src/gdb/filesystem.h
Go to the documentation of this file.
00001 /* Handle different target file systems for GDB, the GNU Debugger.
00002    Copyright (C) 2010-2013 Free Software Foundation, Inc.
00003 
00004    This file is part of GDB.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 3 of the License, or
00009    (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00018 
00019 #ifndef FILESYSTEM_H
00020 #define FILESYSTEM_H
00021 
00022 extern const char file_system_kind_auto[];
00023 extern const char file_system_kind_unix[];
00024 extern const char file_system_kind_dos_based[];
00025 
00026 extern const char *target_file_system_kind;
00027 
00028 /* Same as IS_DIR_SEPARATOR but with file system kind KIND's
00029    semantics, instead of host semantics.  */
00030 
00031 #define IS_TARGET_DIR_SEPARATOR(kind, c)                                \
00032   (((kind) == file_system_kind_dos_based) ? IS_DOS_DIR_SEPARATOR (c) \
00033    : IS_UNIX_DIR_SEPARATOR (c))
00034 
00035 /* Same as IS_ABSOLUTE_PATH but with file system kind KIND's
00036    semantics, instead of host semantics.  */
00037 
00038 #define IS_TARGET_ABSOLUTE_PATH(kind, p)                                \
00039   (((kind) == file_system_kind_dos_based) ? IS_DOS_ABSOLUTE_PATH (p) \
00040    : IS_UNIX_ABSOLUTE_PATH (p))
00041 
00042 /* Same as HAS_DRIVE_SPEC but with file system kind KIND's semantics,
00043    instead of host semantics.  */
00044 
00045 #define HAS_TARGET_DRIVE_SPEC(kind, p)                                  \
00046   (((kind) == file_system_kind_dos_based) ? HAS_DOS_DRIVE_SPEC (p) \
00047    : 0)
00048 
00049 /* Same as lbasename, but with file system kind KIND's semantics,
00050    instead of host semantics.  */
00051 extern const char *target_lbasename (const char *kind, const char *name);
00052 
00053 /* The effective setting of "set target-file-system-kind", with "auto"
00054    resolved to the real kind.  That is, you never see "auto" as a
00055    result from this function.  */
00056 extern const char *effective_target_file_system_kind (void);
00057 
00058 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines