Add an x86_fbsd_nat_target mixin class for FreeBSD x86 native targets.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 22 Mar 2022 19:05:43 +0000 (12:05 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 22 Mar 2022 19:05:43 +0000 (12:05 -0700)
commita49ce729c808b5762faf948a34e6159a6d8874de
tree28ca865350f3adfc5ff8ee5f3c95c0ff856afb01
parentb1babce7c31def7fb894875136788490b167f989
Add an x86_fbsd_nat_target mixin class for FreeBSD x86 native targets.

This class implements debug register support common between the i386
and amd64 native targets.

While here, remove #ifdef's for HAVE_PT_GETDBREGS in FreeBSD-specific
code.  The ptrace request has been present on FreeBSD x86
architectures since 4.0 (released in March 2000).  The last FreeBSD
release without this support is 3.5 released in June 2000.
gdb/amd64-fbsd-nat.c
gdb/i386-fbsd-nat.c
gdb/x86-fbsd-nat.h [new file with mode: 0644]