Re: query on stack trace
Re: query on stack trace
- Subject: Re: query on stack trace
- From: Arnab Ganguly <email@hidden>
- Date: Fri, 13 Feb 2009 12:59:53 +0530
In the Xcode build settings should I make the following setting under the release build
1) Generate Debug Symbols = YES
2) DEBUG_INFORMATION_FORMAT = dwarf-dsm
3)STRIP_STYLE = all
If any additional thing I need to take care also?
-A
On Fri, Feb 13, 2009 at 12:47 PM, Terry Lambert
<email@hidden> wrote:
On Feb 12, 2009, at 11:14 PM, Arnab Ganguly wrote:
Problem is that my application is an embedded application.So once the main application crashes, from my embedded application I try to run an atos on the main application to get the symbol information.What would be the best and correct approach to get the symbols resolved correctly from the main app,considering it has to be a release build?
Distribute a release build without a stripped symbol table?
You can't really get symbols without a table to look them up from.
-- Terry
I don't have the opportunity to use backtrace set of functions as it is on Tiger and using 10.4 sdk.I am trying to retrieve the program counter and on that I run atos with the main applications process id.
Thanks in advance
-A
On Thu, Feb 12, 2009 at 11:14 PM, Terry Lambert <email@hidden> wrote:
Use the -o option to specify the object file for the program from which you have not stripped symbol information. It's able to print symbols for the libraries because their LC sections refer to files from which symbol information has not been stripped, bug the address yo are looking at is in a Mach-o object for which there us not symbol information on the disk.
It more or less states that this will happen for stripped objects in the atos man page.
-- Terry
On Feb 12, 2009, at 4:03 AM, Arnab Ganguly <email@hidden> wrote:
Hi All,
I am using atos with process id and the address but it returns me only the same hex address I am not getting the function name and the line number.Below I have given the output.
The command that I am using is atos -p processid address.
0x9450366b -[NSApplication run] (in AppKit) + 795
0x944d08a4 NSApplicationMain (in AppKit) + 574
0x2f1d 0x00002f1d (in App)
0x2852 0x00002852 (in App)
0x2779 0x00002779 (in App)
What would be the workaround for this?
Thanks in advance.
-A
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden