aeaa8fbc04d092d85d7e5dc5b43b34c7e834ee1a
1 /* Definition of objfile flags.
3 Copyright (C) 1992-2018 Free Software Foundation, Inc.
5 This file is part of GDB.
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.
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.
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/>. */
20 #if !defined (OBJFILE_FLAGS_H)
21 #define OBJFILE_FLAGS_H
23 #include "common/enum-flags.h"
25 /* Defines for the objfile flags field. Defined in a separate file to
26 break circular header dependencies. */
30 /* When an object file has its functions reordered (currently
31 Irix-5.2 shared libraries exhibit this behaviour), we will need
32 an expensive algorithm to locate a partial symtab or symtab via
33 an address. To avoid this penalty for normal object files, we
34 use this flag, whose setting is determined upon symbol table
36 OBJF_REORDERED
= 1 << 0, /* Functions are reordered */
38 /* Distinguish between an objfile for a shared library and a
39 "vanilla" objfile. This may come from a target's
40 implementation of the solib interface, from add-symbol-file, or
41 any other mechanism that loads dynamic objects. */
42 OBJF_SHARED
= 1 << 1, /* From a shared library */
44 /* User requested that this objfile be read in it's entirety. */
45 OBJF_READNOW
= 1 << 2, /* Immediate full read */
47 /* This objfile was created because the user explicitly caused it
48 (e.g., used the add-symbol-file command). This bit offers a
49 way for run_command to remove old objfile entries which are no
50 longer valid (i.e., are associated with an old inferior), but
51 to preserve ones that the user explicitly loaded via the
52 add-symbol-file command. */
53 OBJF_USERLOADED
= 1 << 3, /* User loaded */
55 /* Set if we have tried to read partial symtabs for this objfile.
56 This is used to allow lazy reading of partial symtabs. */
57 OBJF_PSYMTABS_READ
= 1 << 4,
59 /* Set if this is the main symbol file (as opposed to symbol file
60 for dynamically loaded code). */
61 OBJF_MAINLINE
= 1 << 5,
63 /* ORIGINAL_NAME and OBFD->FILENAME correspond to text description
64 unrelated to filesystem names. It can be for example
65 "<image in memory>". */
66 OBJF_NOT_FILENAME
= 1 << 6,
68 /* User requested that we do not read this objfile's symbolic
70 OBJF_READNEVER
= 1 << 7,
73 DEF_ENUM_FLAGS_TYPE (enum objfile_flag
, objfile_flags
);
75 #endif /* !defined (OBJFILE_FLAGS_H) */
This page took 0.030308 seconds and 4 git commands to generate.