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>
Thu, 26 May 2022 21:14:53 +0000 (14:14 -0700)
This fixes the build on older FreeBSD systems without support for
hardware breakpoints/watchpoints.

gdb/aarch64-fbsd-nat.c

index fb7a29b5afb19ddbddd98ce1fd57b53d1eeef158..d8cf6227e73bdc463744a6d74ac224a808afa994 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.  */
@@ -155,6 +154,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;