[PATCH 0/5] Remove support for old FreeBSD hosts

John Baldwin jhb@FreeBSD.org
Mon Jul 20 17:31:31 GMT 2020


This patch series aims to remove some cruft from the FreeBSD native
target that isn't needed on modern systems.  Most of the changes
remove support for systems released more than 10 years ago.  The last
change is closer to 9 years ago, but any such systems already fail to
compile the native target today (and for several recent releases).
I've yet to receive a single complaint either here or on FreeBSD lists
about such breakage.

The kinfo_get_file change could perhaps use further refinement.  We
need a configure check to pick up the correct library (libutil on
FreeBSD and libutil-freebsd on GNU/kFreeBSD).  However, the
kinfo_get_file and kinfo_get_vmmap functions were added to this
library at the same time (same SVN commit in FreeBSD), so checking for
both is redundant.  Right now we check for kinfo_get_file in
gdbsupport since filestuff.c uses it if present.  We could remove the
check for kinfo_get_vmmap entirely from gdb/configure.ac if we think
the kinfo_get_file check in gdbsupport/common.m4 is sufficient.  If
so, I might need to at least move the comment from configure.ac over
to common.m4 with some modifications.

John Baldwin (5): Assume that PT_LWPINFO is always defined on FreeBSD
  hosts.  Assume KERN_PROC_PATHNAME is present on FreeBSD hosts.
  Assume FreeBSD hosts include support for fetching signal
  information.  Require kinfo_get_file and kinfo_get_vmmap for FreeBSD
  hosts.  Assume FreeBSD kernels always report exec events.

 gdb/ChangeLog  |  31 +++++++++++
 gdb/fbsd-nat.c | 139 +------------------------------------------------
 gdb/fbsd-nat.h |   4 --
 3 files changed, 32 insertions(+), 142 deletions(-)

-- 
2.25.1



More information about the Gdb-patches mailing list