D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4037 - [gdb] Invalid DWARF output for wchar
Summary: [gdb] Invalid DWARF output for wchar
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: patch
Depends on:
Blocks: 4044
  Show dependency treegraph
 
Reported: 2010-04-01 07:38 UTC by Robert Clipsham
Modified: 2014-04-18 09:12 UTC (History)
2 users (show)

See Also:


Attachments
Patch to add support for debugging info for wchar (1.52 KB, patch)
2010-04-01 11:36 UTC, Robert Clipsham
Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Robert Clipsham 2010-04-01 07:38:28 UTC
The following testcase:
----
void main() {
    wchar c;
}
----
Causes dmd to output invalid debug information.
Comment 1 Robert Clipsham 2010-04-01 07:43:59 UTC
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 Robert Clipsham 2010-04-01 11:36:11 UTC
Created attachment 595 [details]
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 Robert Clipsham 2010-04-07 13:39:04 UTC
Comment on attachment 595 [details]
Patch to add support for debugging info for wchar

This patch has been included with the new patch in bug #3987.
Comment 4 Don 2010-05-10 14:47:58 UTC
Fixed DMD2.044 and DMD1.059.