Re: Xcode attaching to signaled applications
Re: Xcode attaching to signaled applications
- Subject: Re: Xcode attaching to signaled applications
- From: Jim Ingham <email@hidden>
- Date: Tue, 11 Jul 2006 10:03:15 -0700
There is a checkbox in the Debugging Tab of the Executable editor (get
this from Project->Edit Active Executable) which controls this auto-
attach feature (it's "Auto-attach debugger on crash".) Turn this off
when you want to run full screen.
Jim
On Jun 29, 2006, at 1:24 PM, Steve Checkoway wrote:
I have a tendency to test my application (a game) by starting it
through Xcode. If the game crashes or an assertion fails, we fork
from the signal handler and reexec to read some data and then shut
down the game gracefully. If I've started it from Xcode, Xcode will
attach gdb when it notices that its child (my game) has been
signaled. Normally is exactly what I'm looking for and it's very
helpful. However, if the game is in full screen when it is signaled
and Xcode attaches gdb, there's nothing I can do. Xcode cannot come
to the front because I have captured the display, the game cannot be
killed because it's being traced so I have to ssh in and kill Xcode.
Actually, come to think of it, it'd seem like killing gdb would be
enough and that killing Xcode wouldn't actually do anything. I'll
have to try that next time it happens.
Is there something else I can do to prevent this from happening? I
can use ptrace(2) with PT_DENY_ATTACH when the game goes into
fullscreen but I don't know of any way to reverse that if the game
comes out of full screen. Similarly, I can have Xcode not attach gdb
(I think), but like I said, I'd like it to do that except when I've
forgotten and left the game in full screen.
Does anyone have any ideas on how this might be accomplished?
--
Steve Checkoway
_______________________________________________
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
_______________________________________________
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