[Issue 21658] Debugger is reading enums with EnumBaseType incorrectly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 23 22:03:09 UTC 2021


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

Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |DebugInfo
                 CC|                            |r.sagitario at gmx.de
          Component|visuald                     |dmd

--- Comment #1 from Rainer Schuetze <r.sagitario at gmx.de> ---
Even though dmd emits the debug info for the enum declaration, it declares the
variable as an ubyte:

(000044) S_GPROC32: [0000:00000000], Cb: 00000013, Type: 0x1005, D main
         Parent: 00000000, End: 00000000, Next: 00000000
         Debug start: 00000008, Debug end: 0000000E

(000072)  S_ENDARG
(000076)  S_REGREL32: rbp+FFFFFFF8, Type:      T_UCHAR(0020), x

(000086) S_END

LDC works correctly, and Mago displays the enumerator value as expected

--


More information about the Digitalmars-d-bugs mailing list