Re: Am I being debugged?
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.