Re: DWARF format and stripping
Re: DWARF format and stripping
- Subject: Re: DWARF format and stripping
- From: Greg Hurrell <email@hidden>
- Date: Wed, 31 May 2006 22:36:56 +0200
El 31/05/2006, a las 21:46, Jason Molenda escribió:
4. Does anyone have any pointers on what kind of workflow is
necessary to interpret user-submitted crash reports when using
dwarf-with-dsym? I know how to use atos on an unstripped binary
that contains STABS-format debugging information. But I have no
idea at all what the paradigm is with dsym files.
Unfortunately this is a hole in the XCode 2.3 workflow - it's
something we'll need to address in a future release. You would run
atos on the dSYM file but currently atos can't parse that file.
You may be able to jury-rig gdb to do what you need -- gdb being
one of the few utilities on the system that understand dSYM files
right now. e.g. given an address 0x1234, you can run gdb on the
dSYM file and type "info line *0x1234" to get the source line
information. A concrete example given an address of 0x2696 from a
crashdump of gdb-i386-apple-darwin:
% echo 'info line *0x2696' > /tmp/gdbcmds
% gdb --batch --quiet -x /tmp/gdbcmds gdb-i386-apple-darwin.dSYM/
Contents/Resources/DWARF/gdb-i386-apple-darwin
Line 28 of "/tmp/gdb.roots/gdb/src/gdb/gdb.c" starts at address
0x2696 <main> and ends at 0x269d <main+7>.
%
Using gdb to do a simple address-to-source-line translation is a
bit of overkill but this should work for the time being.
Thanks very much for the information, Jason. I think that until atos
knows how to read dSYM files the most efficient way of working for me
will be to use DWARF in my debug builds, but stick with STABS on my
release builds (I don't really care about the superiority of DWARF in
the case of release builds, seeing as I won't be running those under
the debugger anyway!).
However, once atos *does* know how to read dSYM files I'll make the
switch. Seems much better to keep a bunch of dSYM files rather than
bulky, unstripped executables.
Cheers,
Greg
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden