Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong stack when debugging CFM app under Rosetta




On 07.08.2007, at 09:08, Jan Barnholt wrote:
Sounds like an interesting technique..
However - I'll probably spend the time finally converting my CFM project to Mach-O;
The few tests I ran suggested that there's no problem with stack traces and Rosetta/Mach-O

Be forewarned the stack traces probably might be misleading. I'd give porting to Universal a chance. A stack trace is based on an offset from a known (symbol) location, and that is what Rosetta does - it dynamically translates code from one architecture to another, on that way changing the code size, order and offsets. It is possible, though, Rosetta shifts the embedded Mach-O inline symbol name (that is embedded before or directly after the code)


You might try the "More Is Better" sample code from developer.apple.com, there are some routines to read out the current stack programmatically. Maybe it works..

Best regards,
	Tom_E
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Wrong stack when debugging CFM app under Rosetta (From: "Jan Barnholt" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.