Thread overview
[Issue 1104] CodeView: char is marked 0x20 (T_UCHAR) instead of 0x10 (T_CHAR)
Jul 12, 2019
Rainer Schuetze
Aug 20, 2019
Rainer Schuetze
Aug 21, 2019
Dlang Bot
Aug 21, 2019
Dlang Bot
Aug 22, 2019
RazvanN
July 12, 2019
https://issues.dlang.org/show_bug.cgi?id=1104

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de

--- Comment #6 from Rainer Schuetze <r.sagitario@gmx.de> ---
https://github.com/microsoft/microsoft-pdb/blob/master/include/cvinfo.h now shows

T_CHAR16         = 0x007a,   // 16-bit unicode char T_CHAR32         = 0x007b,   // 32-bit unicode char

--
August 20, 2019
https://issues.dlang.org/show_bug.cgi?id=1104

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei@erdani.com

--- Comment #7 from Andrei Alexandrescu <andrei@erdani.com> ---
@Rainer is this a D2 issue as well? If so how can we address it?

--
August 20, 2019
https://issues.dlang.org/show_bug.cgi?id=1104

--- Comment #8 from Rainer Schuetze <r.sagitario@gmx.de> ---
(In reply to Andrei Alexandrescu from comment #7)
> @Rainer is this a D2 issue as well? If so how can we address it?

Yes, wchar looks ok, dchar is emitted as an uint, i.e. the character is not displayed in the debugger.

VS2019's C++ compiler emits T_CHAR32 for a char32_t variable and displays it correctly, using that with dmd works, too (after a small patch to mago, it shows it as wchar right now).

I guess it should be ok to switch to T_CHAR32, ignoring ancient debuggers that might not support it.

--
August 20, 2019
https://issues.dlang.org/show_bug.cgi?id=1104

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugzilla@digitalmars.com    |r.sagitario@gmx.de

--- Comment #9 from Andrei Alexandrescu <andrei@erdani.com> ---
@Rainers thanks! I will assign this to you in the interim, feel free to reassign or better yet it would be great to look into it.

--
August 21, 2019
https://issues.dlang.org/show_bug.cgi?id=1104

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

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

--- Comment #10 from Dlang Bot <dlang-bot@dlang.rocks> ---
@rainers created dlang/dmd pull request #10327 "fix issue 1104 - CodeView: dchar shown as uint in the debugger" fixing this issue:

- fix issue 1104 - CodeView: dchar shown as uint in the debugger

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

--
August 21, 2019
https://issues.dlang.org/show_bug.cgi?id=1104

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #11 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #10327 "fix issue 1104 - CodeView: dchar shown as uint in the debugger" was merged into master:

- d60e03f200df71b17bdd213802208fbcd88e5cb0 by Rainer Schuetze:
  fix issue 1104 - CodeView: dchar shown as uint in the debugger

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

--
August 22, 2019
https://issues.dlang.org/show_bug.cgi?id=1104

--- Comment #12 from RazvanN <razvan.nitu1305@gmail.com> ---
*** Issue 1430 has been marked as a duplicate of this issue. ***

--