This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [RFHelp] Linux, threads, and regsets in thread_db
- To: Daniel Jacobowitz <drow at mvista dot com>
- Subject: Re: [RFHelp] Linux, threads, and regsets in thread_db
- From: Mark Kettenis <kettenis at science dot uva dot nl>
- Date: 25 Sep 2001 12:08:37 +0200
- Cc: gdb at sources dot redhat dot com
- References: <20010924212808.A20851@nevyn.them.org>
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