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

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 tree / graph
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
Show Obsolete (1) Add an attachment (proposed patch, testcase, etc.)

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.


AltStyle によって変換されたページ (->オリジナル) /