Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debug information on OS X - bugzilla 4154 #83

Merged
merged 3 commits into from
Jun 30, 2011

Conversation

mrmonday
Copy link
Contributor

@mrmonday mrmonday commented Jun 4, 2011

This fixes http://d.puremagic.com/issues/show_bug.cgi?id=4154. Behaviour now matches that of gcc and clang on OS X. Note that for debug information to work properly on OS X dsymutil needs to be run on the resulting binary after linking, eg:

$ dsymutil myBinary

I've not implemented this as it gives the following error:

Assertion failed: (linked_addr_pos != line_table_map.end()), function FixReferences, file /SourceCache/dwarf_utilities/dwarf_utilities-83/source/DWARFdSYM.cpp, line 3606.
Abort trap

I guess this could be worked around, I have no idea how though.

mrmonday added 2 commits June 4, 2011 00:49
…Mac.

It seems including the offset causes dwarfdump to complain, removing it fixes
this issue.
@WalterBright
Copy link
Member

I'll have to wait on this, as my Mac's motherboard has died. It's out for repair.

WalterBright added a commit that referenced this pull request Jun 30, 2011
Fix debug information on OS X - bugzilla 4154
@WalterBright WalterBright merged commit d45a82b into dlang:master Jun 30, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants