• 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
GDB: Does "catch vfork" work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GDB: Does "catch vfork" work?


  • Subject: GDB: Does "catch vfork" work?
  • From: Daniel Jalkut <email@hidden>
  • Date: Fri, 07 Oct 2005 12:44:11 -0400


I'm using gdb to examine the behavior of the screencapture mechanism (handled by SystemUIServer in response to the Cmd-Shift-4 shortcut).


SystemUIServer uses vfork to spawn a new process for the screencapture invocation. In the process of examining gdb's facilities for working with multiple processes, I noticed the intriguing "catch" command.

I thought I would test it out on SystemUIServer since I know it calls vfork. But "catch vfork" doesn't seem to work. Setting a breakpoint on vfork works. I notice that "catch start" kindly informs me that it's not implemented yet. Should "catch vfork" be saying the same thing?

And out of curiosity, what are the benefits of using "catch" as opposed to "break" when the thing that's being caught corresponds to a system call? "catch start" sounds cool because it doesn't correspond to a system call. I guess that may be why it's not implemented yet :)

Thanks!
Daniel

_______________________________________________
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


  • Follow-Ups:
    • Re: GDB: Does "catch vfork" work?
      • From: Damien Bobillot <email@hidden>
  • Prev by Date: Re: How to disable 'warning: converting to 'int' from 'float'' warning?
  • Next by Date: Re: How to disable 'warning: converting to 'int' from 'float'' warning?
  • Previous by thread: Re: Xcode complains: configuration settings file does not exist
  • Next by thread: Re: GDB: Does "catch vfork" work?
  • Index(es):
    • Date
    • Thread