[Qt-interest] Qt debug symbols on OS X / configure

Dair Grant dair at refnum.com
Tue Oct 5 12:14:35 CEST 2010


James Larcombe wrote:

>> That builds a set of frameworks that allow source-level debugging (when Xcode
>> is set to apply DYLD_IMAGE_SUFFIX=_debug to the executable being debugged).
>> 
> Interesting - we use pretty much those options (not specifying -dwarf2
> explicitly, but according to configure that's the default?) but found we had
> to build dSYMs manually for each of the Qt frameworks using dsymutil to get it
> to work correctly.
> 
> Do you get all the *_debug.dSYM files automatically then?

No, you would need to pass dwarf-with-dsym as the debug format to the linker
to get external dsym files (I don't know if Qt's configure passes that on,
or if it only supports the options it recognises) or run dsymutil over the
binaries.

If you just ask for dwarf, the symbol information is kept in the executable
rather than a separate .dSYM file.


However, with the above build options we can step into Qt source just by
enabling the "Use [debug] suffix when loading frameworks" option in Xcode.

If you open the Info window for the application executable in Xcode then
this option is in the General tab.


-dair
___________________________________________________
dair at refnum.com              http://www.refnum.com/





More information about the Qt-interest-old mailing list