Re: Am I Being Debugged?
Re: Am I Being Debugged?
- Subject: Re: Am I Being Debugged?
- From: Steve Checkoway <email@hidden>
- Date: Mon, 8 Oct 2007 18:21:13 -0700
On Oct 8, 2007, at 2:10 PM, glenn andreas wrote:
On Oct 8, 2007, at 3:12 PM, Michael Crawford wrote:
Is there an API that allows an application to know that
it's being run under GDB?
#include <sys/sysctl.h>
#include <unistd.h>
[snip]
This Tech Q&A <http://developer.apple.com/qa/qa2004/qa1361.html> gives
the following warning for this piece of code.
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.
--
Steve Checkoway
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden