Date: Mon, 29 Mar 2004 00:06:35 +0100 From: "Niall Douglas" <s_sourceforge@nedprod.com> To: freebsd-threads@freebsd.org Subject: Re: GDB 6.0 and FreeBSD threads Message-ID: <4067688B.19545.1A50C1@localhost> In-Reply-To: <Pine.GSO.4.10.10403280945100.19010-100000@pcnet5.pcnet.com> References: <406605CC.14911.CD2D006@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4067688B.19545.1A50C1>