1 /* Definition of objfile flags. 2 3 Copyright (C) 1992-2024 Free Software Foundation, Inc. 4 5 This file is part of GDB. 6 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 9 the Free Software Foundation; either version 3 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 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/>. */ 19 20 #if !defined (OBJFILE_FLAGS_H) 21 #define OBJFILE_FLAGS_H 22 23 #include "gdbsupport/enum-flags.h" 24 25 /* Defines for the objfile flags field. Defined in a separate file to 26 break circular header dependencies. */ 27 28 enum objfile_flag : unsigned 29 { 30 /* Distinguish between an objfile for a shared library and a 31 "vanilla" objfile. This may come from a target's 32 implementation of the solib interface, from add-symbol-file, or 33 any other mechanism that loads dynamic objects. */ 34 OBJF_SHARED = 1 << 0, /* From a shared library */ 35 36 /* User requested that this objfile be read in it's entirety. */ 37 OBJF_READNOW = 1 << 1, /* Immediate full read */ 38 39 /* This objfile was created because the user explicitly caused it 40 (e.g., used the add-symbol-file command). This bit offers a 41 way for run_command to remove old objfile entries which are no 42 longer valid (i.e., are associated with an old inferior), but 43 to preserve ones that the user explicitly loaded via the 44 add-symbol-file command. */ 45 OBJF_USERLOADED = 1 << 2, /* User loaded */ 46 47 /* Set if this is the main symbol file (as opposed to symbol file 48 for dynamically loaded code). */ 49 OBJF_MAINLINE = 1 << 4, 50 51 /* ORIGINAL_NAME and OBFD->FILENAME correspond to text description 52 unrelated to filesystem names. It can be for example 53 "<image in memory>". */ 54 OBJF_NOT_FILENAME = 1 << 5, 55 56 /* User requested that we do not read this objfile's symbolic 57 information. */ 58 OBJF_READNEVER = 1 << 6, 59 }; 60 61 DEF_ENUM_FLAGS_TYPE (enum objfile_flag, objfile_flags); 62 63 #endif /* !defined (OBJFILE_FLAGS_H) */ 64