Debug information for enumerator values

Iain Buclaw ibuclaw at ubuntu.com
Tue Sep 17 03:17:24 PDT 2013


On 17 September 2013 11:02, Tove <tove at fransson.se> wrote:
> On Tuesday, 17 September 2013 at 09:52:37 UTC, Iain Buclaw wrote:
>>
>> (gdb) print ('test.enum_ulong')3
>> $11 = (test.enum_ulong.kE2 | test.enum_ulong.kE3)
>>
>> (gdb) print ('test.enum_ulong')2
>> $12 = test.enum_ulong.kE3
>>
>> What do you think?  Is <module>.<name>.<member> too verbose, or just
>> right? :-)
>>
>> Regards
>> Iain
>
>
> Kickass! I think it's "just right"... _BUT_ in case of multiple values, I
> would prefer something like this:
>
> $11 = test.enum_ulong(kE2 | kE3)

Need to open a bug report on 'wishlist' items in gdb D support.  As I
plan to get round to hacking it sometime soon...

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the Digitalmars-d mailing list