gdb attach to process to produce stacktrace

Hans Horn
Wed Sep 20 16:22:00 GMT 2006

That's all I needed to know.
So in order for the process I'm attaching gdb to to terminate on its own I 
must not use anything that ends up in a windows dll.

In the mingw/msys sources (msys\rt\src\newlib\libc\sys\go32\sleep.c) I found 
a sleep impl (DJ Delorie, 1991) that emulates the sleep functionality using 
repeated time() calls.
no windows dll there - just what the doctor ordered.

thanks for all your help.

"Dave Korn"  wrote in message 
> On 20 September 2006 16:06, Hans Horn wrote:
>> The real question is as to why the parent process needs to go into a
>> while(1) loop in order to produce the desired trace.
>  Because then you're running in the program code, whereas in the sleep
> function you've ended up in a windows dll function and ...
>>> Note that if the process is stopped in a Windows DLL the stack trace
>>> will probably not be very informative.
>    cheers,
>      DaveK
> -- 
> Can't think of a witty .sigline today....

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list