Re: query for system framework symbols
Re: query for system framework symbols
- Subject: Re: query for system framework symbols
- From: Terry Lambert <email@hidden>
- Date: Fri, 28 Aug 2009 13:21:22 -0700
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