From 2bfed4e87257a8d6433edb145326da31816d19c1 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Thu, 23 Jun 2022 12:19:52 +0100 Subject: [PATCH] gdb: make gdb_disassembly_flag unsigned In a later commit I want to use operator~ on a gdb_disassembly_flag flag value. This is currently not possible as gdb_disassembly_flag is, by default, signed. This commit just makes this enum unsigned. There should be no user visible changes after this commit. --- gdb/disasm-flags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/disasm-flags.h b/gdb/disasm-flags.h index 5a7371b0a39..9420e7c478c 100644 --- a/gdb/disasm-flags.h +++ b/gdb/disasm-flags.h @@ -24,7 +24,7 @@ /* Flags used to control how GDB's disassembler behaves. */ -enum gdb_disassembly_flag +enum gdb_disassembly_flag : unsigned { DISASSEMBLY_SOURCE_DEPRECATED = (0x1 << 0), DISASSEMBLY_RAW_INSN = (0x1 << 1), -- 2.30.2