Does gdb support D enums?

drug via D.gnu d.gnu at puremagic.com
Wed Oct 21 10:51:05 PDT 2015


21.10.2015 18:22, Johannes Pfau пишет:
> Am Wed, 21 Oct 2015 11:45:58 +0300
> schrieb drug <drug2004 at bk.ru>:
>
>> Using gdb `print` instead of enum value I see `incomplete type`. Did
>> I miss something? (I use gdb 7.10 from ttp://ftp.gnu.org/gnu/gdb/)
>>
>> Thanks
>
> Which gdc branch/version? And please provide a testcase as I can't
Oh, sorry, I use dmd-built binaries, so this is the reason, I guess? 
Does gdb work as expected only with gdc-built binaries?
> reproduce this bug with a simple example:
>
> Breakpoint 1, D main () at test.d:11
> 11	    TestEnum e;
> (gdb) print e
> $1 = a
>



More information about the D.gnu mailing list