www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15630] New: gdb: <incomplete type> for enums values

https://issues.dlang.org/show_bug.cgi?id=15630

          Issue ID: 15630
           Summary: gdb: <incomplete type> for enums values
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: pro.mathias.lang gmail.com
                CC: ibuclaw gdcproject.org

Tested with 'GNU gdb (GDB) 7.10.1' (latest release) + DMD
2.069-but-really-2.070.

The following code, compiler with '-g':
```
enum Foo
{
    Bar,
    Bar2,
    Bar3
}

void main ()
{
    openBar(Foo.Bar3);
}

void openBar (Foo f) { asm { int 3; } }
```

Will produce the following when debugging:
```
Program received signal SIGTRAP, Trace/breakpoint trap.
test.openBar(test.Foo) (f=<incomplete type>) at test.d:13
13    void openBar (Foo f) { asm { int 3; } }
```

Notice the "<incomplete type>". It seems gdb is not able to read enums produced
by DMD.

--
Jan 30