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 22.214.171.124
> 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
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