On Thu, Mar 18, 2010 at 8:14 AM, Jeremy Pereira <[email protected]> wrote: > > On 18 Mar 2010, at 11:48, Peter Hudson wrote: > >> Technical Q&A QA1361 >> Detecting the Debugger >> >> Does this code report on my app being debugged by any third party, even when >> the app has been stripped of symbols ? >> Would it work irrespective of the debugging tool used ? > > Did you read the warning at the bottom of the page? > > http://developer.apple.com/mac/library/qa/qa2004/qa1361.html > > "IMPORTANT: Because the definition of the kinfo_proc structure (in > <sys/sysctl.h>) is conditionalized by__APPLE_API_UNSTABLE, you should > restrict use of the above code to the debug build of your program." > > This suggests you should not put the example code in the release builds of > your program.
However, if you actually check the header (at least in the 10.6 SDK), you won't find that flag. Seeing as how the technote is over five years old, that structure probably got moved to stable at some point in the intervening time. Mike _______________________________________________ Cocoa-dev mailing list ([email protected]) 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]
