Don't compile x86 debug register support on OpenBSD. Upstream commit 757e686afb4ac97bcf9333b10a6a0880bdd310f8 Index: gdb/x86-bsd-nat.h --- gdb/x86-bsd-nat.h.orig +++ 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 */