delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/23/06:59:05

From: raf AT comdyn DOT com DOT au (raf)
Subject: Re: B20: hang on pipe to grep
23 Nov 1998 06:59:05 -0800 :
Message-ID: <199811230234.NAA28255.cygnus.gnu-win32@mali.comdyn.com.au>
To: gnu-win32 AT cygnus DOT com

Gary V. Vaughan wrote:

>Is there a way to get gdb to follow the child after a fork()?  I could
>probably debug things myself if there were... I always seem to remain in
>the parent process and the child tears away at full speed...

gdb can attach itself to a running process (gdb <progname> <pid>).
so start a new gdb once you know the child's pid.
maybe even have your code launch a gdb that attaches
to the child as soon as it has been created.

raf

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019