Re: query for system framework symbols
Re: query for system framework symbols
- Subject: Re: query for system framework symbols
- From: Arnab Ganguly <email@hidden>
- Date: Sat, 29 Aug 2009 08:26:14 +0530
Thanks for all help and very much appreciated for your time and patience.
My requirement is to resolve system framework symbols on basis of hex addresses and this symbols resolves happen in some other box where I have only the binary or the symbol file.The process itself is not running. If I run atos with respect to an hex address representing a system framework address, I get only the address no function name etc...I run "atos address -o Executable" but in case of application specific I do get it resolved properly.The address I take from the Crashreporter logs.
That's why I am wondering how apple crash reporter by using atos is able to resolve.So what would be the best approach for the above requirement .Suggestions would be very helpful.
Let me know if I can provide you more informaton.
Thanks
-A
On Sat, Aug 29, 2009 at 1:51 AM, Terry Lambert
<email@hidden> wrote:
You asked this before. The answer is the same as before. CrashReporter runs atos.
Not all symbols are linked into the binary file until the process is running. This is why atos supports the -p option. This is also why CrashReporter runs as a result of intercepting the exception on the task exception port for the process, and pulling the information out of the process address space before it exits. Otherwise it wouldn't be able to get bundle or other information for things that were loaded after it got to _main in your executable program. It also would not recognize local symbols (which show up as 't' instead of 'T' in the output of the "nm" command.
Things like Adobe Photoshop which have their own crash reporting facilities do so by taking over the task exception port, and basically reimplementing CrashReporter from scratch, so that they can deal with crashes in third party plugins in their proprietary plugin format, which they wouldn't be able to do otherwise using the system CrashReporter.
It would probably be a good idea if you were to specify what you are trying to do, instead of fishing for information about OS internals which are typically adequately covered by the documentation on <http://developer.apple.com/>; for example, pretty much everything you could want to know about CrashReporter is covered in things like TechNote 2123.
-- Terry
On Aug 28, 2009, at 12:50 PM, Arnab Ganguly wrote:
Is there any tool available which can give me the symbols for the System framework present in a binary or in the symbol file ? Like the system symbol resolution what we get in the crash logs.
Thanks
-A
On Sat, Aug 29, 2009 at 1:08 AM, Terry Lambert <email@hidden> wrote:
On Aug 28, 2009, at 12:06 PM, Arnab Ganguly wrote:
Hi All,
Is it possible to embed the system frameworks symbols in the DWARF/stabs file, considering the target OS is Mac OS X ? Like the utility dwarfdump should show me the system frameworks symbols as well and atos in case of stabs.
I have no idea what you think you don't have available to you, but I just did:
nm /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
and it dumped a whole bunch of symbols.
As far as atos, goes, it knows about both dwarf and stabs.
We haven't shipped a compiler that does stabs by default for a while now.
Are you asking for DWARF/stabs debugging information for system frameworks? If so, there are no user serviceable parts inside.
-- Terry
_______________________________________________
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