Thread overview
[Issue 4038] New: [gdb] Invalid DWARF output for function pointers with ref args
Apr 01, 2010
Robert Clipsham
Apr 01, 2010
Robert Clipsham
Apr 07, 2010
Robert Clipsham
May 10, 2010
Don
April 01, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4038

           Summary: [gdb] Invalid DWARF output for function pointers with
                    ref args
           Product: D
           Version: 1.055
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: robert@octarineparrot.com


--- Comment #0 from Robert Clipsham <robert@octarineparrot.com> 2010-04-01 20:19:03 BST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 01, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4038



--- Comment #1 from Robert Clipsham <robert@octarineparrot.com> 2010-04-01 20:38:07 BST ---
Created an attachment (id=596)
Patch to add support for debugging info for ref args to function pointers

Simple patch, just make ref args behave like pointers.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 07, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4038


Robert Clipsham <robert@octarineparrot.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #596 is|0                           |1
           obsolete|                            |


--- Comment #2 from Robert Clipsham <robert@octarineparrot.com> 2010-04-07 21:39:13 BST ---
(From update of attachment 596)
This patch has been included with the new patch in bug #3987.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4038


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug@yahoo.com.au
         Resolution|                            |FIXED


--- Comment #3 from Don <clugdbug@yahoo.com.au> 2010-05-10 14:49:19 PDT ---
Fixed DMD2.044 and DMD1.059.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------