[RFHelp] Linux, threads, and regsets in thread_db

Mark Kettenis kettenis@science.uva.nl
Tue Sep 25 03:09:00 GMT 2001


Daniel Jacobowitz <drow@mvista.com> writes:

> I spent a while this summer making thread debugging work on some more
> non-x86 targets, with great frustration.  Eventually I reached the
> decision that my problem was in fact a glibc bug; the attached messages
> explain it.  Ulrich has categorically (and without explanation, when
> asked.  sigh.) refused the patch.

Seems that Ulrich is still confused about the regset issues.  I asked
the port maintainers to clean this up when I fixed it for i386.  Jakub
Jellinek cleaned up sparc, but nothing else happened.

> Could someone on this list at least sanity check my patch?  I have a
> (disgusting) workaround for GDB if the header is not changed, but I'd
> much rather someone convince Ulrich that I'm not crazy.  Especially
> since I can not get the workaround to compile without warnings.  C
> behaves badly in the presence of casts to/from array types.

In principle, your patch is the right thing.  There may be
interactions with <sys/user.h> and <sys/elf.h> though.  Look at the
i386 port to see how things should be done.

Mark



More information about the Gdb mailing list