[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 08:41:06 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14927

David Nadlinger <code at klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at klickverbot.at

--- Comment #4 from David Nadlinger <code at klickverbot.at> ---
(In reply to Iain Buclaw from comment #3)
> (In reply to Jack Stouffer from comment #2)
> > (In reply to Iain Buclaw from comment #1)
> > > 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.
> > 
> 
> I wonder if DMD's choice of emitting symbols as _D3foo3bar instead of
> __D3foo3bar is biting them on OSX.

It certainly is for the demangling side of things.

--


More information about the Digitalmars-d-bugs mailing list