Bug 4037 – [gdb] Invalid DWARF output for wchar

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Linux
Creation time
2010-04-01T07:38:00Z
Last change time
2014-04-18T09:12:07Z
Keywords
patch
Assigned to
nobody
Creator
robert
Blocks
4044
See also
http://d.puremagic.com/issues/show_bug.cgi?id=3987

Attachments

IDFilenameSummaryContent-TypeSize
595dwarf.c.diffPatch to add support for debugging info for wchartext/plain1554

Comments

Comment #0 by robert — 2010-04-01T07:38:28Z
The following testcase: ---- void main() { wchar c; } ---- Causes dmd to output invalid debug information.
Comment #1 by robert — 2010-04-01T07:43:59Z
It would seem that dmd does not support writing debug info for wchar yet, as the case for dealing with wchar is wrapped in #if 0, and has some information on what the correct debug information should be.
Comment #2 by robert — 2010-04-01T11:36:11Z
Created attachment 595 Patch to add support for debugging info for wchar I'm not sure if the file/line number that are written to the file matter, I don't think they do so I set them both to 1. This might need the patch for #3987 applied, might not.
Comment #3 by robert — 2010-04-07T13:39:04Z
Comment on attachment 595 Patch to add support for debugging info for wchar This patch has been included with the new patch in bug #3987.
Comment #4 by clugdbug — 2010-05-10T14:47:58Z
Fixed DMD2.044 and DMD1.059.