This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix usage of inferior_ptid in two thread_alive implementations
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: John Baldwin <jhb at freebsd dot org>
- Cc: gdb-patches at sourceware dot org, Pedro Alves <palves at redhat dot com>, Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Wed, 29 Mar 2017 20:50:58 -0400
- Subject: Re: [PATCH] Fix usage of inferior_ptid in two thread_alive implementations
- Authentication-results: sourceware.org; auth=none
- References: <20170207212450.2232-1-simon.marchi@ericsson.com> <f20baf9481cbd876a3c87876bbe50445@polymtl.ca> <8688edde-759a-7f84-482d-9823a8f546b3@redhat.com> <2339561.2zYrb3lbLI@ralph.baldwin.cx>
On 2017-03-29 15:32, John Baldwin wrote:
I don't think any modern versions of either FreeBSD or OpenBSD
use bsd-uthread.c. The uthread target is for a thread implementation
that only provided threads in userland on top of a single process
(like "green" threads in the JDK). FreeBSD last shipped a release
with support for this thread model (FreeBSD 6.4) in 2008. I can't
speak to when OpenBSD stopped using user-based threads, but the
existence of kernel-based thread support in the obsd-nat target
implies it isn't used anymore either. For FreeBSD at least I think
it would be fine to remove bsd-uthread.c.
(I should also send a patch in to remove FreeBSD/alpha as that
platform was retired at around the same time. The last release
to support alpha was 6.3 also released in 2008.)
Thanks for the reply, this is very valuable information.
I would appreciate very much any effort to remove obsolete targets, as
it has some maintenance cost. For example, doing refactors that require
touching all the targets (such as changing the interface of a target_ops
method) is very long. If we can remove any target that has no reason to
be today, it can only help.
Simon