On Sun, Mar 9, 2008 at 4:45 PM, Tony Becker <[EMAIL PROTECTED]> wrote:
> If you're on Leopard, there is a new backtrace(3) call.
>  If you're on Tiger, it's a little more complex...
>
>         You can use the compiler function
>                 (long)__builtin_return_address(0)
>         to find the address of your caller. Alas, there is no
>  __builtin_return_symbol()

Interesting. The manpage for backtrace mentions dladdr, which is
available on 10.4. Maybe you can use that instead of launching atos.
Particularly, I'm looking at the dli_sname member.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to