<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 21 October 2015 at 19:52, drug via D.gnu <span dir="ltr"><<a href="mailto:d.gnu@puremagic.com" target="_blank">d.gnu@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">21.10.2015 19:31, Iain Buclaw via D.gnu пишет:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On 21 October 2015 at 10:45, drug via D.gnu <<a href="mailto:d.gnu@puremagic.com" target="_blank">d.gnu@puremagic.com</a><br></span><span class="">
<mailto:<a href="mailto:d.gnu@puremagic.com" target="_blank">d.gnu@puremagic.com</a>>> wrote:<br>
<br>
Using gdb `print` instead of enum value I see `incomplete type`. Did<br>
I miss something? (I use gdb 7.10 from ttp://<a href="http://ftp.gnu.org/gnu/gdb/" rel="noreferrer" target="_blank">ftp.gnu.org/gnu/gdb/</a><br></span>
<<a href="http://ftp.gnu.org/gnu/gdb/" rel="noreferrer" target="_blank">http://ftp.gnu.org/gnu/gdb/</a>>)<span class=""><br>
<br>
Thanks<br>
<br>
<br>
<br>
Depends what you mean by 'enum'. Only integral types are treated as<br>
enum in the C sense. All other value types (bool, float) are treated as<br>
constant literals that you can only access through it's qualified name.<br>
Don't expect aggregate types (struct, array, associative array) to show<br>
properly either.<br>
</span></blockquote>
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.<br>
</blockquote></div><br></div><div class="gmail_extra">I meant enum : MyStruct { ... }<br><br></div><div class="gmail_extra">I guess DMD does not support emitting enums to debug then.<br><br></div></div>