Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DWARF format and stripping



On 5/31/06, Jason Molenda <email@hidden> wrote:

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>.

Ah thanks for that... I may work out a script based on your example to do this in bulk based on data from a crash reporter log. Really not that bad compared to atos... it may be a workable solution for us.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >DWARF format and stripping (From: Greg Hurrell <email@hidden>)
 >Re: DWARF format and stripping (From: Jason Molenda <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.