Re: DWARF format and stripping (addresses to symbols + line numbers)
Re: DWARF format and stripping (addresses to symbols + line numbers)
- Subject: Re: DWARF format and stripping (addresses to symbols + line numbers)
- From: Greg Hurrell <email@hidden>
- Date: Fri, 2 Jun 2006 17:41:25 +0200
El 02/06/2006, a las 17:05, Shawn Erickson escribió:
On 6/2/06, Greg Hurrell <email@hidden> wrote:
Interesting... When I run atos I definitely *don't* get line number
information:
$ atos -arch i386 -o App_i386_unstripped 0x000d77c
-[GHController handleNotification:] (in App_i386_unstripped)
When using DWARF you won't get line numbers if you use STABS you will
(assuming you build your release product with debug symbols and it
really is unstripped). At this time atos doesn't understand DWARF well
enough to get line information, it can only locate function names.
Yes, that much was already clear from Jason Molenda's previous posts.
I do this all the time with my cached unstripped release product that
has STABS symbols. You do get line numbers.
You might, but I don't. The above output is from an unstripped
release product that has STABS symbols (in fact, it was built with
Xcode 2.2.1, before DWARF support was even added). Build settings:
DEBUG_INFORMATION_FORMAT = stabs
// Dead Code Stripping needs full symbols
DEAD_CODE_STRIPPING = YES
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
GCC_DEBUGGING_SYMBOLS = full
// necessary for stripping (will only actually install if DSTROOT is
set to /)
DEPLOYMENT_POSTPROCESSING = YES
SKIP_INSTALL = NO
// for greater control, perform stripping using a script rather than
letting the linker do it
STRIP_INSTALLED_PRODUCT = NO
SEPARATE_STRIP = NO
// may be redundant, but for completeness
STRIP_STYLE = all
// symbols are hidden by default unless explicitly marked otherwise
GCC_SYMBOLS_PRIVATE_EXTERN = YES
// inlined functions are also hidden (strictly speaking,
GCC_SYMBOLS_PRIVATE_EXTERN implies this setting also)
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
ONLY_LINK_ESSENTIAL_SYMBOLS = YES
KEEP_PRIVATE_EXTERNS = NO
GCC_ENABLE_SYMBOL_SEPARATION = YES
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