[Issue 4372] New: type of enumerator values reduced to base type in debug info
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 23 00:12:02 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4372
Summary: type of enumerator values reduced to base type in
debug info
Product: D
Version: D1 & D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P3
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: r.sagitario at gmx.de
--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2010-06-23 00:12:00 PDT ---
Variables with enumerator type show up in the debugger as their base types.
Even though the enumerator type itself is written to the object file (at least
for CodeView debug info), it is not referred to by the variables type.
compiling:
module test;
enum E { kEnum1, kEnum2 }
E e = E.kEnum1;
with "dmd -c -g test.d" and running the object file through obj2asm produces
----8<-----
...
S_GDATA32 off = x0000, seg = x0000, typ = x0074 _D4test1eE4test1E
segidx = 5 offset = 004e, lcfd = ec10, fd = 1, td = 8, targdisp = x0000
...
---->8-----
mapping test.e to type 74h (int).
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list