Does gdb support D enums?

Iain Buclaw via D.gnu d.gnu at puremagic.com
Wed Oct 21 11:04:28 PDT 2015


On 21 October 2015 at 19:52, drug via D.gnu <d.gnu at puremagic.com> wrote:

> 21.10.2015 19:31, Iain Buclaw via D.gnu пишет:
>
>> On 21 October 2015 at 10:45, drug via D.gnu <d.gnu at puremagic.com
>> <mailto:d.gnu at puremagic.com>> wrote:
>>
>>     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/
>>     <http://ftp.gnu.org/gnu/gdb/>)
>>
>>     Thanks
>>
>>
>>
>> Depends what you mean by 'enum'.  Only integral types are treated as
>> enum in the C sense.  All other value types (bool, float) are treated as
>> constant literals that you can only access through it's qualified name.
>> Don't expect aggregate types (struct, array, associative array) to show
>> properly either.
>>
> As I said above, I use dmd-build binaries and I should say that gdb works
> very well with structs for me. The only exception so far is enum.
>

I meant enum : MyStruct { ... }

I guess DMD does not support emitting enums to debug then.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20151021/ed6dceaf/attachment.html>


More information about the D.gnu mailing list