another idea .. trap or signal for awakening the child after its birth.
after forking - sleep until you send external intervention, in order to
begin execution and examination ... etc.


-=O0~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~O0=-
"Beware the Jabberwock, my son!
 The jaws that bite, the claws that catch!
 Beware the Jubjub bird, and shun
 The frumious Bandersnatch!"

                       [L.Carrol "Jabberwacky"]

On Thu, 15 Nov 2001, Shaul Karl wrote:

> >
> > ddd is a graphic front end for gdb (and dbx and other debuggers).
> > However, I haven't been able to redirect it to the child process,
> > after a fork call. I need to redirect the debugger before the
> > childs birth-- see the reason below .
> > I'vewrite "set follow fork-mode child" on the gdb panel of ddd,
> > and also tried it through the ddd graphical means.
> > Still, the debugger remains attached to the parent child.
> > Someone know how to attach the gdb to the child process- BEFORE
> > it's birth?
> > (The child process dies soon after it's birth-- because of an access
> > violation...).
> >
>
>
> (1) One way to debug the child is to make it sleep immediately after it
> is forked. This will give you sufficient time to find its pid and have
> gdb attached to it.
> (2) Another way might be to examine the child core file.
>
>
> >
> > Thanks
> > Edy
> >
> > =================================================================
> > To unsubscribe, send mail to [EMAIL PROTECTED] with
> > the word "unsubscribe" in the message body, e.g., run the command
> > echo unsubscribe | mail [EMAIL PROTECTED]
> >
>
> --
>
>   Shaul Karl
>   email: shaulka (replace these parenthesis with @) bezeqint,
>          delete the comma and the white space characters and add .net
>
>
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to