D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4038 - [gdb] Invalid DWARF output for function pointers with ref args
Summary: [gdb] Invalid DWARF output for function pointers with ref args
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 12:19 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 ref args to function pointers (268 bytes, patch)
2010-04-01 12:38 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 12:19:03 UTC
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 Robert Clipsham 2010-04-01 12:38:07 UTC
Created attachment 596 [details]
Patch to add support for debugging info for ref args to function pointers

Simple patch, just make ref args behave like pointers.
Comment 2 Robert Clipsham 2010-04-07 13:39:13 UTC
Comment on attachment 596 [details]
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 Don 2010-05-10 14:49:19 UTC
Fixed DMD2.044 and DMD1.059.