• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Am I Being Debugged?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Am I Being Debugged? (From: "Michael Crawford" <email@hidden>)
 >Re: Am I Being Debugged? (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: Regexp search and replace spanning multiple lines
  • Next by Date: Re: Regexp search and replace spanning multiple lines
  • Previous by thread: Re: Am I Being Debugged?
  • Next by thread: Re: Am I Being Debugged?
  • Index(es):
    • Date
    • Thread