This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove support for using the bsd-uthread target on FreeBSD.
- From: John Baldwin <jhb at freebsd dot org>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>
- Cc: gdb-patches at sourceware dot org, "Mark Kettenis (mark dot kettenis at xs4all dot nl)" <mark dot kettenis at xs4all dot nl>
- Date: Tue, 04 Apr 2017 14:19:53 -0700
- Subject: Re: [PATCH] Remove support for using the bsd-uthread target on FreeBSD.
- Authentication-results: sourceware.org; auth=none
- References: <20170404183801.17957-1-jhb@FreeBSD.org> <464e26c426c0486211bed1892a278f86@polymtl.ca>
On Tuesday, April 04, 2017 03:52:28 PM Simon Marchi wrote:
> On 2017-04-04 14:38, John Baldwin wrote:
> > The bsd-uthread target supports an old thread library ("libc_r") that
> > was last included in FreeBSD release 6.4 released in 2008. However,
> > this library has not been used as the default library since FreeBSD
> > 5.0 (2003) and 4.11 (2005). Thread support for modern FreeBSD binaries
> > is provided via "normal" LWP support in core files and the native
> > FreeBSD target.
>
>
> Thanks again!
>
> By any chance, would you know the same information but for obsd and
> nbsd? If not I'll inquire on the relevant mailing lists.
The nbsd architectures in GDB don't use bsd-uthread, only obsd.
Looking at cvsweb for OpenBSD, it seems that OpenBSD switched the default
threading library from a uthread-style libc_r to a LWP-based librthreads
for its thread support in 2012:
http://marc.info/?l=openbsd-cvs&m=132928856921225&w=2
This seems to have been released in OpenBSD 5.1? I believe that the older
uthread-library last shipped in OpenBSD 5.0 in 2011. Presumably Mark (cc'd)
can confirm?
--
John Baldwin