[Interest] debug symbols in OSX application builds
Hamish Moffatt
hamish at risingsoftware.com
Mon Aug 1 09:14:14 CEST 2016
On 01/08/16 14:23, Thiago Macieira wrote:
> On segunda-feira, 1 de agosto de 2016 12:36:32 PDT Hamish Moffatt wrote:
>> I have tracked this down to macdeployqt, which is running strip on my
>> binary. However it is also running strip on the Qt frameworks, yet its
>> symbol names survive?
> They have to. You're calling them.
>
> More specifically: most some symbols were removed, but some remain. Those
> symbols about exported functions and variables need to remain visible, so they
> remain. Since your application is not called by other modules (quite by
> definition), all symbols are stripped.
>
Yup, got it. So it seems the correct approach for getting annotated
crash dumps on Mac is to extract the symbols at build time before strip,
using dsymutil, save the resulting .dSYM package forever, and then
annotate the crash dump later using Xcode, symbolicatecrash,
Xsymbolicate or some other tool with the saved symbols.
The hardest part seems to be annotating the dump later. Most of the
tools don't work.
Hamish
More information about the Interest
mailing list