GDB (xrefs)
Loading...
Searching...
No Matches
gdb
objfile-flags.h
Go to the documentation of this file.
1
/* Definition of objfile flags.
2
3
Copyright (C) 1992-2023 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 we have tried to read partial symtabs for this objfile.
48
This is used to allow lazy reading of partial symtabs. */
49
OBJF_PSYMTABS_READ
= 1 << 3,
50
51
/* Set if this is the main symbol file (as opposed to symbol file
52
for dynamically loaded code). */
53
OBJF_MAINLINE
= 1 << 4,
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>". */
58
OBJF_NOT_FILENAME
= 1 << 5,
59
60
/* User requested that we do not read this objfile's symbolic
61
information. */
62
OBJF_READNEVER
= 1 << 6,
63
};
64
65
DEF_ENUM_FLAGS_TYPE
(
enum
objfile_flag
, objfile_flags);
66
67
#endif
/* !defined (OBJFILE_FLAGS_H) */
objfile_flag
objfile_flag
Definition
objfile-flags.h:29
OBJF_USERLOADED
@ OBJF_USERLOADED
Definition
objfile-flags.h:45
OBJF_READNEVER
@ OBJF_READNEVER
Definition
objfile-flags.h:62
OBJF_SHARED
@ OBJF_SHARED
Definition
objfile-flags.h:34
OBJF_PSYMTABS_READ
@ OBJF_PSYMTABS_READ
Definition
objfile-flags.h:49
OBJF_NOT_FILENAME
@ OBJF_NOT_FILENAME
Definition
objfile-flags.h:58
OBJF_MAINLINE
@ OBJF_MAINLINE
Definition
objfile-flags.h:53
OBJF_READNOW
@ OBJF_READNOW
Definition
objfile-flags.h:37
DEF_ENUM_FLAGS_TYPE
DEF_ENUM_FLAGS_TYPE(enum objfile_flag, objfile_flags)
Generated by
1.10.0