GDB 6.0 and FreeBSD threads
Niall Douglas
s_sourceforge at nedprod.com
Sun Mar 28 15:06:07 PST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 28 Mar 2004 at 9:47, Daniel Eischen wrote:
> No-one has touched uthread support for other GDB's as
> far as I know. Most work is going in to our other thread
> libraries. There is work trying to get GDB thread support
> for libpthread, and that should be here by 5.3-release.
I discovered late last night that libc_r implements only userland
threads which seem to have issues with pipes (my code kept hanging
inside the pipe i/o). I then discovered there are real system scope
threads too, but they're in a different library called libkse.
You guys could seriously improve the documentation inside the man
pages. Please! Just a two line paragraph would have saved me more
than a day of work.
After linking to libkse and finding it really doesn't like coexisting
with libc_r, I discovered the libmap.conf trick and it works now.
Unfortunately I'm back to square one in that no gdb supports kse
threads. This is a major problem as my code is heavily multithreaded.
Does this David Xu have some patch code for gdb around in some CVS
repository? The only thing stopping me moving to FreeBSD as my
primary Unix development platform is this as it's significantly
faster than RedHat 9 on my system. If I could grab this support and
get it mostly working, I could move to BSD permanently (in these last
three days I find I prefer it to Linux for some unknown reason).
Cheers,
Niall
-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2
iQA/AwUBQGdafcEcvDLFGKbPEQKnXwCeOWRlCexwgIr0pryUtvJQgbkbG3wAoM9s
k0gJ5q5O7bUdM7tELZY5sWxw
=zYb3
-----END PGP SIGNATURE-----
More information about the freebsd-threads
mailing list