public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: make gdb_disassembly_flag unsigned
@ 2022-10-02 13:15 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2022-10-02 13:15 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2bfed4e87257a8d6433edb145326da31816d19c1

commit 2bfed4e87257a8d6433edb145326da31816d19c1
Author: Andrew Burgess <aburgess@redhat.com>
Date:   Thu Jun 23 12:19:52 2022 +0100

    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.

Diff:
---
 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),

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-02 13:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-02 13:15 [binutils-gdb] gdb: make gdb_disassembly_flag unsigned Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).