I have a process that is called by another process which is called by another process and so on ad nauseum. It\'s a child process in a long tool chain.
This process
On Mac OS X, you can use:
(gdb) attach --waitfor
but this also is sometimes unable to capture processes that exit very quickly. I'm unsure if this is supported on any other platforms.
GDB Release Notes for Mac OS X v10.5 WWDC Seed