• 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: Justin Walker <email@hidden>
  • Date: Tue, 17 Feb 2004 09:08:59 -0800

On Tuesday, February 17, 2004, at 08:41 AM, Pavol Markovic wrote:

man ptrace
[snip]
On Feb 17, 2004, at 11:26 AM, Matt Gough wrote:

In my Development build, I would like to be able to determine (at runtime)
whether I am running inside gdb, or just running normally. What is the best
way to do this?


Also, could I determine if I started normally, but have been attached to
gdb?

I don't think 'ptrace' applies here. First, there is no call that the child/debuggee can make (other than 'TRACE_ME', so 'ptrace' itself doesn't give you that information. Second, I believe that process debugging on Darwin is handled via Mach calls. Someone in the know should correct me if I'm wrong.


Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large  *
Institute for General Semantics        |    Men are from Earth.
                                       |    Women are from Earth.
                                       |       Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Am I being debugged? (From: Pavol Markovic <email@hidden>)

  • Prev by Date: Why do some build settings have lines through them?
  • Next by Date: Re: Am I being debugged?
  • Previous by thread: Re: Am I being debugged?
  • Next by thread: Re: Am I being debugged?
  • Index(es):
    • Date
    • Thread