1 /* Disassemble flags for GDB.
2 
3    Copyright (C) 2002-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 #ifndef DISASM_FLAGS_H
21 #define DISASM_FLAGS_H
22 
23 #include "gdbsupport/enum-flags.h"
24 
25 /* Flags used to control how GDB's disassembler behaves.  */
26 
27 enum gdb_disassembly_flag : unsigned
28   {
29     DISASSEMBLY_SOURCE_DEPRECATED = (0x1 << 0),
30     DISASSEMBLY_RAW_INSN = (0x1 << 1),
31     DISASSEMBLY_OMIT_FNAME = (0x1 << 2),
32     DISASSEMBLY_FILENAME = (0x1 << 3),
33     DISASSEMBLY_OMIT_PC = (0x1 << 4),
34     DISASSEMBLY_SOURCE = (0x1 << 5),
35     DISASSEMBLY_SPECULATIVE = (0x1 << 6),
36     DISASSEMBLY_RAW_BYTES = (0x1 << 7),
37   };
38 DEF_ENUM_FLAGS_TYPE (enum gdb_disassembly_flag, gdb_disassembly_flags);
39 
40 #endif /* DISASM_FLAGS_H */
41 
42