This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: popen
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Bruce Korb <bkorb at gnu dot org>
- Cc: Chris Hamilton <chamilto at navtechinc dot com>, gdb at sources dot redhat dot com
- Date: Mon, 20 Jan 2003 21:00:51 -0500
- Subject: Re: popen
- References: <3E2C6377.5030600@navtechinc.com> <3E2C6A5C.3AA4D0E3@gnu.org>
On Mon, Jan 20, 2003 at 01:30:04PM -0800, Bruce Korb wrote:
> Chris Hamilton wrote:
> >
> > Bruce,
> > I came across your September 24th posting about gdb throwing off a
> > "Cannot find thread 2049" when it hits a popen
> > (http://sources.redhat.com/ml/insight/2002-q3/msg00185.html).
> > I'm currently experiencing the same problem in my application, and I was
> > wondering if you had any advice on how to solve it.
>
> printf debugging, I guess. Essentially, the problem boils down
> to there not being a good implementation of multithreaded
> process management for GDB on i386. If you are running UnixWare,
> then Debug works great. Otherwise, you might try a supported
> multithread platform (Solaris on Sparc??).
Popen should not present this problem. I don't know why it does, so we
need more information.
Meanwhile multi-process debugging is forthcoming. The Linux kernel
patches are already in and I have more GDB patches queued.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer