Thread overview
[Issue 8172] OSX: symbols mangled on gdb,ggdb,cgdb,lldb but not on ubuntu; no line numbers on stacktraces
Feb 14, 2014
Iain Buclaw
Feb 20, 2014
David Nadlinger
Mar 02, 2014
bzzs
January 11, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=8172


Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei@erdani.com


--- Comment #9 from Andrei Alexandrescu <andrei@erdani.com> 2014-01-10 17:48:30 PST ---
placed $50 bounty

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 13, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=8172


camille@bountysource.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |camille@bountysource.com


--- Comment #10 from camille@bountysource.com 2014-02-13 13:13:18 PST ---
To anyone working on this, some notes from David Nadlinger via email --

While the patch I was testing would fix the reported issue (missing mangled names in debuggers on OS X) in conjunction with GDB 7.1+, it would not be enough to resolve the issue to general satisfaction, as recent GDB versions are not available from Apple, and using upstream (vanilla GNU) gdb comes with its own share of shortcomings.

I'd expect a fix eligible for collecting the bounty to offer some way of pretty-printing symbols in LLDB, which is pushed by Apple as a GDB replacement, and is in the process of becoming the de-facto standard debugger on OS X. This could either be done by directly adding the support to the upstream LLDB project, or by providing some kind of hooking or wrapper script adding that functionality. Last time I checked, LLDB, though extensively scriptable, didn't offer direct support for adding external name demangling routines, which is why I didn't continue work on the issue so far, although this restriction could certainly be removed or worked around.

I'm in a hurry right now, but please feel free to relay the above to the bug tracker.

Best,
David

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 14, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=8172


Iain Buclaw <ibuclaw@ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@ubuntu.com


--- Comment #11 from Iain Buclaw <ibuclaw@ubuntu.com> 2014-02-14 02:33:34 PST ---
I'd be happy to say that for OSX, you should instead focus on LLDB over GDB.

As for demangling support in GDB, I have committed it into upstream development.  If anyone wants to test this on OSX, be my guest.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=shortlog;h=50367cd2ada722ddf5bede594d8ed7631fcde5ab

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 20, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=8172



--- Comment #12 from David Nadlinger <code@klickverbot.at> 2014-02-20 09:46:09 PST ---
(In reply to comment #11)
> As for demangling support in GDB, I have committed it into upstream development.  If anyone wants to test this on OSX, be my guest.

Not even the rudimentary demangling support in GDB 7.1+ works on OS X right now due to the missing underscore issue mentioned above, and somehow I'm sceptical that your patch changes that, unless you explicitly made the leading underscore optional.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 02, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=8172


bzzs <dlang.x.ox336699@neverbox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang.x.ox336699@neverbox.c
                   |                            |om


--- Comment #13 from bzzs <dlang.x.ox336699@neverbox.com> 2014-03-01 18:23:34 PST ---
The bounty has been bumped up by another $50

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