Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GDB: Does "catch vfork" work?




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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.