This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Debugging child process
- To: cygwin <cygwin at sources dot redhat dot com>
- Subject: Re: Debugging child process
- From: Corinna Vinschen <vinschen at redhat dot com>
- Date: Thu, 09 Nov 2000 15:03:00 +0100
- References: <001001c04a51$3bd560e0$21c9ca95@mow.siemens.ru>
- Reply-To: cygwin <cygwin at sources dot redhat dot com>
Andrej Borsenkow wrote:
>
> I need to debug a process immediately after fork. IIRC gdb under cygwin cannot
> continue debugging across forks (is it correct?) I've tried to add sigpause()
> to be able to attach to child, but somehow it does not work. Child stops, I
> can attach and set breakpoint, but cont'ing does not works (I say cont and
> send signal from shell but child never seems to hit breakpoint).
>
> Any idea?
Did you attach to the correct process? I'm asking because you have
to care for the PID. GDB needs the WINPID as argument, not the Cygwin
PID.
Just a hint,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@redhat.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com