diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-05-26 14:14:46 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-05-26 14:14:53 -0700 |
commit | b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec (patch) | |
tree | ebf5d6d56eeab6caadb84a2ef73a07813f75dae2 /gdb/aarch64-fbsd-nat.c | |
parent | 98aa8321ee1bbd4b511992f2bbc4d34450c4a3f9 (diff) | |
download | gdb-b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec.zip gdb-b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec.tar.gz gdb-b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec.tar.bz2 |
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.
Diffstat (limited to 'gdb/aarch64-fbsd-nat.c')
-rw-r--r-- | gdb/aarch64-fbsd-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/aarch64-fbsd-nat.c b/gdb/aarch64-fbsd-nat.c index fb7a29b..d8cf622 100644 --- a/gdb/aarch64-fbsd-nat.c +++ b/gdb/aarch64-fbsd-nat.c @@ -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; |