Bug 15630 – gdb: <incomplete type> for enums values

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-01-30T23:09:31Z
Last change time
2024-12-13T18:46:43Z
Assigned to
No Owner
Creator
Mathias LANG
Moved to GitHub: dmd#19095 →

Comments

Comment #0 by pro.mathias.lang — 2016-01-30T23:09:31Z
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.
Comment #1 by bitter.taste — 2017-01-17T22:29:56Z
Comment #2 by robert.schadek — 2024-12-13T18:46:43Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19095 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB