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: Ptrace: step-by-step and breakpoints



At 10:01 PM -0800 12/12/2002, Francois Reboursier <email@hidden> wrote:
I'm looking for information on using ptrace(2) to execute a Mach-O
executable step-by-step, get the registers values and insert breakpoints.
Does anybody has some documentation or sample code?

You might find the code in Microsoft's shared source CLI (<http://msdn.microsoft.com/net/sscli>) useful. It does all of these, though parts of the code might be a bit confusing. It doesn't use ptrace because Mach calls worked better on Mac OS X than ptrace's somewhat crufty interface.

Once you expand the tarball, you'll probably find the contents of pal/unix/arch/ppc interesting, as well as pal/unix/exception/machexception.c.

Hope this helps,
Eric

--
Eric Albert email@hidden
http://rescomp.stanford.edu/~ejalbert/
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



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.