[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ddd question (gdb graphic front-end)
- To: Gold Edward <avieal(at-nospam)inter.net.il>
- Subject: Re: ddd question (gdb graphic front-end)
- From: Shaul Karl <shaulka(at-nospam)bezeqint.net>
- Date: Thu, 15 Nov 2001 00:23:10 +0200
- cc: Linux Israel <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: Message from Gold Edward <avieal@inter.net.il> of "Wed, 14 Nov 2001 21:27:58 +0200." <3BF2C5BE.CBF41E25@inter.net.il>
- References: <3BF2C5BE.CBF41E25@inter.net.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
>
> 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 linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
>
--
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 linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il