[Issue 14927] GDB cannot be used to debug D programs on OS X
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Tue Aug 18 03:20:10 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=14927
Iain Buclaw <ibuclaw at gdcproject.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |ibuclaw at gdcproject.org
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
> And `info variables` returns the mangled D names for variables and not their real name, despite the language being set to D and doing `demangle [some_name]` returns the correct names.
This is why you must *NEVER* use -gc on Linux/OSX/FreeBSD.  The -gc switch
marks all functions as 'C' language functions, and gdb will not attempt to
demangle such functions when it loads the symbol table.
FYI - there is a PR open that has been dwindling:
https://github.com/D-Programming-Language/dmd/pull/4766
--
    
    
More information about the Digitalmars-d-bugs
mailing list