This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/366: HPUX hangs during fork
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 8 Apr 2002 16:58:01 -0000
- Subject: Re: gdb/366: HPUX hangs during fork
- Reply-to: Andrew Cagney <ac131313 at cygnus dot com>
The following reply was made to PR gdb/366; it has been noted by GNATS.
From: Andrew Cagney <ac131313@cygnus.com>
To: law@redhat.com
Cc: ezannoni@redhat.com, ac131313@redhat.com,
gdb-gnats@sources.redhat.com
Subject: Re: gdb/366: HPUX hangs during fork
Date: Mon, 08 Apr 2002 12:50:34 -0400
> > It appears that child...inferior () accepts an int (int pid) as an argument,
> > and then passes that int to add_thread (line 3126). The add_thread()
> > function actually takes a ptid_t (typdef'd in def.h as a struct ptid) as an
> > argument. My core dump shows that gdb is attempting to access memory at
> > 0x3d4, which evaluates to 980, or the pid of the child process.
> So what happens instead of passing the pid to add_thread you instead pass
> pid_to_ptid(pid))?
I believe the parameter passing bug was fixed in current sources. I'm
not clear if the hang occures with that fixed. I'm pretty sure it still
does though.
Andrew