aarch64-fbsd-nat: Move definition of debug_regs_probed under HAVE_DBREG.

This fixes the build on older FreeBSD systems without support for
hardware breakpoints/watchpoints.
This commit is contained in:
John Baldwin
2022-05-26 14:14:46 -07:00
parent 98aa8321ee
commit b2fdd31b03

View File

@@ -76,7 +76,6 @@ private:
}; };
static aarch64_fbsd_nat_target the_aarch64_fbsd_nat_target; static aarch64_fbsd_nat_target the_aarch64_fbsd_nat_target;
bool aarch64_fbsd_nat_target::debug_regs_probed;
/* Fetch register REGNUM from the inferior. If REGNUM is -1, do this /* Fetch register REGNUM from the inferior. If REGNUM is -1, do this
for all registers. */ for all registers. */
@@ -155,6 +154,8 @@ aarch64_fbsd_nat_target::read_description ()
} }
#ifdef HAVE_DBREG #ifdef HAVE_DBREG
bool aarch64_fbsd_nat_target::debug_regs_probed;
/* Set of threads which need to update debug registers on next resume. */ /* Set of threads which need to update debug registers on next resume. */
static std::unordered_set<lwpid_t> aarch64_debug_pending_threads; static std::unordered_set<lwpid_t> aarch64_debug_pending_threads;