Re: Translating AppleScript to AppleEvents
John Hawkinson <jhawk-DPNOqEs/[email protected]> Mon, 25 Jul 2011 09:47:19 -0400
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
The now-defunct Apple TN2124 (http://web.archive.org/web/20101109192900/http://developer.apple.com/library/mac/#/web/20101113130453/http://developer.apple.com/library/mac/technotes/tn2004/tn2124.html) explains that $r3 is the first paramters. On an Intel architecture, that is on the stack. The gdb example uses 'fut', which is 'future-break', which I believe should set the breakpoint after the stack setup, in which case TN2124 directs you to use *(int *)($ebp+8). If I'm wrong and it's before the stack setup, then it is relative to the stack pointer not the base pointer and you should use *(int *)($esp+4). [email protected] John Hawkinson Gregory Weston <[email protected]> wrote on Sun, 24 Jul 2011 at 23:15:36 -0400 in <B81CB241-B95C-43DE-B8D2-167D757EFDF2-ee4meeAH724@public.gmane.org>: > I'm wondering if anyone knows how to accomplish the same thing on > Intel-based machines. I'm hopeful that it's a simple matter of > replacing the $r3 register argument with something else but I don't > know enough about modern Intel architectures to know what that might > be.