Thread overview
[Issue 21658] Debugger is reading enums with EnumBaseType incorrectly
Feb 23, 2021
Rainer Schuetze
Mar 13, 2021
Dlang Bot
May 31, 2021
Dlang Bot
Dec 17, 2022
Iain Buclaw
February 23, 2021
https://issues.dlang.org/show_bug.cgi?id=21658

alexanderheistermann@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |normal

--
February 23, 2021
https://issues.dlang.org/show_bug.cgi?id=21658

alexanderheistermann@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86                         |All

--
February 23, 2021
https://issues.dlang.org/show_bug.cgi?id=21658

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

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

--- Comment #1 from Rainer Schuetze <r.sagitario@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

--
March 13, 2021
https://issues.dlang.org/show_bug.cgi?id=21658

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@12345swordy created dlang/dmd pull request #12274 "Fix issue 21658 Debugger is reading enums with EnumBaseType incorrectly." fixing this issue:

- Fix issue 21658 Debugger is reading enums with EnumBaseType incorrectly.

https://github.com/dlang/dmd/pull/12274

--
March 25, 2021
https://issues.dlang.org/show_bug.cgi?id=21658

alexanderheistermann@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend

--- Comment #3 from alexanderheistermann@gmail.com ---
Adding the keyword backend, as it quite clear that the backend is assuming that enums are 32 bit size which isn't always the case.

--
May 31, 2021
https://issues.dlang.org/show_bug.cgi?id=21658

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@12345swordy updated dlang/dmd pull request #12097 "Implementation of Properties." fixing this issue:

- Fix issue 21658 Debugger is reading enums with EnumBaseType incorrectly.

https://github.com/dlang/dmd/pull/12097

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21658

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--