linux-mips
[Top] [All Lists]

Re: gdb, pthreads and MIPS

To: Scott A McConnell <samcconn@cotw.com>
Subject: Re: gdb, pthreads and MIPS
From: Daniel Jacobowitz <dan@debian.org>
Date: Thu, 24 Jan 2002 12:15:44 -0500
Cc: "MIPS/Linux List (SGI)" <linux-mips@oss.sgi.com>
In-reply-to: <3C502108.B4024075@cotw.com>
References: <3C502108.B4024075@cotw.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.3.23i
On Thu, Jan 24, 2002 at 08:58:16AM -0600, Scott A McConnell wrote:
> I am targeting a NEC VR5432
> 
> I am able to debug/set break points on executables that are not linked
> with -lpthreads. However, whenever I try an executable that was linked
> with pthreads gdb can never find the stack (PC).
> 
> Once a SIGTRAP occurs gdb has lost track of the stack. Up until that
> point it seems to be keeping track of the PC.
> 
> I have tried gdb from the SGI site (H J Lu) I also have built 5.1.0.1
> native. Both fail.
> 
> Are other people having trouble debugging pthreads?
> Are there any patches available?
> Can anyone even help me classify this problem? (gcc, glibc, gdb all
> three)

Primarily glibc.  I've spent a long long time trying to get this fixed
and Ulrich categorically refused the patch.  The size of prgregset in
the headers is wrong.

Edit /usr/include/sys/procfs.h, change the typedef of pr*regset from
*regset_t to elf_*regset_t, rebuild GDB, see if it works.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

<Prev in Thread] Current Thread [Next in Thread>