[Issue 3987] [gdb] Invalid DWARF output for function pointers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 30 14:31:59 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3987


Robert Clipsham <robert at octarineparrot.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #8 from Robert Clipsham <robert at octarineparrot.com> 2010-03-30 22:31:36 BST ---
Ignoring the above patch, and removing lines 1447 and 1469 (both DW_AT_type) of
backend/dwarf.c, fixes this and most of the function pointer related debugging
issues, and unlike the attached patch creates the correct debug info (the patch
creates debug info that works but isn't the correct way to do it). The only
situations it doesn't not fix involve:
----
// T and U can be any type
T function(U function(/*Any args here*/)) funcptr;
----
Where dmd created invalid information for .debug_range, and when attempting to
read the debug info both readelf and objdump degfault, gdb continues to DIE. If
I cannot fix this issue then this fix should be applied for now, as the
situation is still far better than it is currently (debug info for phobos and
druntime works, and most apps I've encountered don't use the above).

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


More information about the Digitalmars-d-bugs mailing list