[Issue 15630] New: gdb: <incomplete type> for enums values
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jan 30 15:09:31 PST 2016
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 at puremagic.com
Reporter: pro.mathias.lang at gmail.com
CC: ibuclaw at 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.
--
More information about the Digitalmars-d-bugs
mailing list