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 May 31, 2006, at 5:10 PM, Greg Hurrell wrote:

It would be fantastic if you could get line numbers and not just function-level symbols. For now (using atos) you basically have to delve into guesswork when it comes to working out which line in a function is the last-executed in a crash.

If you have a binary with debug symbols (stabs) or a dSYM file (DWARF), gdb can do it for you. As I mentioned earlier today,



(gdb) info line *0x2696
Line 28 of "/tmp/gdb.roots/gdb/src/gdb/gdb.c" starts at address 0x2696 <main> and ends at 0x269d <main+7>.



If your pre-stripped release binary was built with debug symbols (stabs for now), atos can do the same. You may be building your release build without debug symbols - in which case neither gdb nor atos can do much more than function names.


J
_______________________________________________
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>)
 >Re: DWARF format and stripping (From: Greg Hurrell <email@hidden>)
 >Re: DWARF format and stripping (From: "Shawn Erickson" <email@hidden>)
 >Re: DWARF format and stripping (From: Jason Molenda <email@hidden>)
 >Re: DWARF format and stripping (From: "Shawn Erickson" <email@hidden>)
 >Re: DWARF format and stripping (From: Jason Molenda <email@hidden>)
 >Re: DWARF format and stripping (From: Greg Hurrell <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.