> 
> 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've write "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]

Reply via email to