disasm-flags.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Disassemble flags for GDB.
  2. Copyright (C) 2002-2022 Free Software Foundation, Inc.
  3. This file is part of GDB.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. #ifndef DISASM_FLAGS_H
  15. #define DISASM_FLAGS_H
  16. #include "gdbsupport/enum-flags.h"
  17. /* Flags used to control how GDB's disassembler behaves. */
  18. enum gdb_disassembly_flag
  19. {
  20. DISASSEMBLY_SOURCE_DEPRECATED = (0x1 << 0),
  21. DISASSEMBLY_RAW_INSN = (0x1 << 1),
  22. DISASSEMBLY_OMIT_FNAME = (0x1 << 2),
  23. DISASSEMBLY_FILENAME = (0x1 << 3),
  24. DISASSEMBLY_OMIT_PC = (0x1 << 4),
  25. DISASSEMBLY_SOURCE = (0x1 << 5),
  26. DISASSEMBLY_SPECULATIVE = (0x1 << 6),
  27. };
  28. DEF_ENUM_FLAGS_TYPE (enum gdb_disassembly_flag, gdb_disassembly_flags);
  29. #endif /* DISASM_FLAGS_H */