]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/objfile-flags.h
Finalized intl-update patches
[thirdparty/binutils-gdb.git] / gdb / objfile-flags.h
CommitLineData
b15cc25c
PA
1/* Definition of objfile flags.
2
213516ef 3 Copyright (C) 1992-2023 Free Software Foundation, Inc.
b15cc25c
PA
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
268a13a5 23#include "gdbsupport/enum-flags.h"
b15cc25c
PA
24
25/* Defines for the objfile flags field. Defined in a separate file to
26 break circular header dependencies. */
27
ad69edbb 28enum objfile_flag : unsigned
b15cc25c 29 {
b15cc25c
PA
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. */
100e3935 34 OBJF_SHARED = 1 << 0, /* From a shared library */
b15cc25c
PA
35
36 /* User requested that this objfile be read in it's entirety. */
100e3935 37 OBJF_READNOW = 1 << 1, /* Immediate full read */
b15cc25c
PA
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. */
100e3935 45 OBJF_USERLOADED = 1 << 2, /* User loaded */
b15cc25c
PA
46
47 /* Set if we have tried to read partial symtabs for this objfile.
48 This is used to allow lazy reading of partial symtabs. */
100e3935 49 OBJF_PSYMTABS_READ = 1 << 3,
b15cc25c
PA
50
51 /* Set if this is the main symbol file (as opposed to symbol file
52 for dynamically loaded code). */
100e3935 53 OBJF_MAINLINE = 1 << 4,
b15cc25c
PA
54
55 /* ORIGINAL_NAME and OBFD->FILENAME correspond to text description
56 unrelated to filesystem names. It can be for example
57 "<image in memory>". */
100e3935 58 OBJF_NOT_FILENAME = 1 << 5,
97cbe998
SDJ
59
60 /* User requested that we do not read this objfile's symbolic
61 information. */
100e3935 62 OBJF_READNEVER = 1 << 6,
b15cc25c
PA
63 };
64
65DEF_ENUM_FLAGS_TYPE (enum objfile_flag, objfile_flags);
66
67#endif /* !defined (OBJFILE_FLAGS_H) */