diff --git a/gdb/configure.nat b/gdb/configure.nat index e34cccffd98..655c75dd1ab 100644 --- a/gdb/configure.nat +++ b/gdb/configure.nat @@ -451,9 +451,8 @@ case ${gdb_host} in case ${gdb_host_cpu} in i386) # Host: OpenBSD/amd64 - NATDEPFILES="${NATDEPFILES} obsd-nat.o amd64-nat.o x86-nat.o \ - x86-bsd-nat.o amd64-bsd-nat.o amd64-obsd-nat.o bsd-kvm.o \ - nat/x86-dregs.o" + NATDEPFILES="${NATDEPFILES} obsd-nat.o amd64-nat.o \ + x86-bsd-nat.o amd64-bsd-nat.o amd64-obsd-nat.o bsd-kvm.o" LOADLIBES='-lkvm' ;; mips) diff --git a/gdb/x86-bsd-nat.h b/gdb/x86-bsd-nat.h index 02d61c20b0b..caf62e38df6 100644 --- a/gdb/x86-bsd-nat.h +++ b/gdb/x86-bsd-nat.h @@ -27,18 +27,23 @@ extern size_t x86bsd_xsave_len; /* A prototype *BSD/x86 target. */ +#ifdef HAVE_PT_GETDBREGS template class x86bsd_nat_target : public x86_nat_target { using base_class = x86_nat_target; public: -#ifdef HAVE_PT_GETDBREGS void mourn_inferior () override { x86_cleanup_dregs (); base_class::mourn_inferior (); } -#endif /* HAVE_PT_GETDBREGS */ }; +#else /* !HAVE_PT_GETDBREGS */ +template +class x86bsd_nat_target : public BaseTarget +{ +}; +#endif /* HAVE_PT_GETDBREGS */ #endif /* x86-bsd-nat.h */