• 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
Xcode attaching to signaled applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode attaching to signaled applications


  • Subject: Xcode attaching to signaled applications
  • From: Steve Checkoway <email@hidden>
  • Date: Thu, 29 Jun 2006 13:24:53 -0700

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



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

  • Prev by Date: Re: can I catch an EXC_BAD_ACCESS?
  • Next by Date: Re: XCode ld and static lib.a files...
  • Previous by thread: Re: How to launch an application for a given document name from carbon
  • Next by thread: Const structure pointer as template argument
  • Index(es):
    • Date
    • Thread