commit 7b45afa632e0484835a56cc60393d5e118c0f605 Author: John Baldwin Date: Thu May 26 14:14:46 2022 -0700 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. (cherry picked from commit b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec) diff --git gdb/aarch64-fbsd-nat.c gdb/aarch64-fbsd-nat.c index 910bf5bb190..ab6ab36a39a 100644 --- gdb/aarch64-fbsd-nat.c +++ gdb/aarch64-fbsd-nat.c @@ -76,7 +76,6 @@ struct aarch64_fbsd_nat_target final : public 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 for all registers. */ @@ -154,6 +153,8 @@ aarch64_fbsd_nat_target::read_description () } #ifdef HAVE_DBREG +bool aarch64_fbsd_nat_target::debug_regs_probed; + /* Set of threads which need to update debug registers on next resume. */ static std::unordered_set aarch64_debug_pending_threads;