]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
aarch64-fbsd-nat: Move definition of debug_regs_probed under HAVE_DBREG.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 26 May 2022 21:14:46 +0000 (14:14 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 27 May 2022 21:17:35 +0000 (14:17 -0700)
This fixes the build on older FreeBSD systems without support for
hardware breakpoints/watchpoints.

(cherry picked from commit b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec)

gdb/aarch64-fbsd-nat.c

index 910bf5bb190f019622923ea86b373c5e5a56c5d4..ab6ab36a39a105b975bb2626eee2af73a45c4864 100644 (file)
@@ -76,7 +76,6 @@ private:
 };
 
 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<lwpid_t> aarch64_debug_pending_threads;