Re: query for system framework symbols
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com -- Terry and it dumped a whole bunch of symbols. As far as atos, goes, it knows about both dwarf and stabs. -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. 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 <tlambert@apple.com> 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 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert