Re: atos and DWARF
Re: atos and DWARF
- Subject: Re: atos and DWARF
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 1 Nov 2007 16:10:02 -0700
On 11/1/07, Shawn Erickson <email@hidden> wrote:
> On 11/1/07, Shawn Erickson <email@hidden> wrote:
> > It looks like atos (Xcode 3.0 install) now supports the DWARF symbol
> > format. Is that correct? At least it seems to be giving me correct
> > line information in the simple tests I have done so far against a C++
> > library built with DWARF symbols.
> >
> > However... it looks like atos doesn't understand how to get symbol
> > information out of a dSYM file... or at least I can't get it to work
> > for me just yet.
So if I follow the directions outlined in the "Debugging and
Symbolizing Crash Dumps In Xcode" [1] document, in particular section
"Extracting the Debugging Information to a Separate File" and then
attempt to use atos on the result binary for a know address atos is
unable to produce useful information (for some templatized C++ code it
works but Objective-C is a no go). If I use line info in gdb for the
same address I see the symbol and line information I expect.
So gdb appears to have the ability to work correctly against a
stripped application with dSYM file while atos doesn't work.
In my testing it looks like the strip step (Xcode basically calls
"strip" without any parameters) is what breaks atos ability to produce
useful symbol information even when you have a dSYM file.
If you save the dSYM file and the unstriped version of your
application you can use atos without issue (at least in my tests). In
other words save off those two for future debugging needs and then
strip the application and ship that to customers.
Note you need the dSYM file (as is noted in the document I linked)
since it persists information that can only be found in the object
files that exist temporarily after you build (until your next build or
clean, etc.).
Anyway it seems like atos (at least Xcode 3.0 installed version, not
tested others) may have a bug/weakness that doesn't affect gdb. I will
file a defect about (...actually I believe I already have a some what
related bug on atos already from 2.4 days).
-Shawn
[1] <http://developer.apple.com/tools/xcode/symbolizingcrashdumps.html>
_______________________________________________
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