Bug 4038 – [gdb] Invalid DWARF output for function pointers with ref args

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

Attachments

IDFilenameSummaryContent-TypeSize
596dwarf.c.diffPatch to add support for debugging info for ref args to function pointerstext/plain268

Comments

Comment #0 by robert — 2010-04-01T12:19:03Z
The following test case: ---- void function(ref int) foobar; void main(){} ---- Causes dmd to produce invalid debug info. There is no case for TYref, so it defaults to 0, and that is never valid for a DW_AT_type.
Comment #1 by robert — 2010-04-01T12:38:07Z
Created attachment 596 Patch to add support for debugging info for ref args to function pointers Simple patch, just make ref args behave like pointers.
Comment #2 by robert — 2010-04-07T13:39:13Z
Comment on attachment 596 Patch to add support for debugging info for ref args to function pointers This patch has been included with the new patch in bug #3987.
Comment #3 by clugdbug — 2010-05-10T14:49:19Z
Fixed DMD2.044 and DMD1.059.