Automatic date update in version.in
[external/binutils.git] / gdb / symfile-add-flags.h
1 /* Definition of symfile add flags.
2
3    Copyright (C) 1990-2019 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 (SYMFILE_ADD_FLAGS_H)
21 #define SYMFILE_ADD_FLAGS_H
22
23 #include "gdbsupport/enum-flags.h"
24
25 /* This enum encodes bit-flags passed as ADD_FLAGS parameter to
26    symbol_file_add, etc.  Defined in a separate file to break circular
27    header dependencies.  */
28
29 enum symfile_add_flag : unsigned
30   {
31     /* Be chatty about what you are doing.  */
32     SYMFILE_VERBOSE = 1 << 1,
33
34     /* This is the main symbol file (as opposed to symbol file for
35        dynamically loaded code).  */
36     SYMFILE_MAINLINE = 1 << 2,
37
38     /* Do not call breakpoint_re_set when adding this symbol file.  */
39     SYMFILE_DEFER_BP_RESET = 1 << 3,
40
41     /* Do not immediately read symbols for this file.  By default,
42        symbols are read when the objfile is created.  */
43     SYMFILE_NO_READ = 1 << 4,
44
45     /* The new objfile should be marked OBJF_NOT_FILENAME.  */
46     SYMFILE_NOT_FILENAME = 1 << 5,
47  };
48
49 DEF_ENUM_FLAGS_TYPE (enum symfile_add_flag, symfile_add_flags);
50
51 #endif /* !defined(SYMFILE_ADD_FLAGS_H) */