[PATCH 3/5] gdb: allow duplicate enumerators in flag enums

Simon Marchi simark@simark.ca
Tue Feb 18 22:25:00 GMT 2020


On 2020-02-18 4:57 p.m., Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
> 
> Simon> Is this list of fields guaranteed to be
> Simon> in the same order as what's in the code though?
> 
> Yeah, should be, of course subject to what the compiler decides.
> 
> Simon> Not sure what you mean here.  With the current patch, this enum would not
> Simon> bne marked as a flag enum, as `one` has multiple bits set.
> 
> I read the patches in the wrong order.  FAOD this one also looks good to me.

Thanks, I'll push the series then.

Simon



More information about the Gdb-patches mailing list