public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] aarch64-fbsd-nat: Move definition of debug_regs_probed under HAVE_DBREG.
@ 2022-05-26 21:15 John Baldwin
  0 siblings, 0 replies; only message in thread
From: John Baldwin @ 2022-05-26 21:15 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec

commit b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec
Author: John Baldwin <jhb@FreeBSD.org>
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.

Diff:
---
 gdb/aarch64-fbsd-nat.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/aarch64-fbsd-nat.c b/gdb/aarch64-fbsd-nat.c
index fb7a29b5afb..d8cf6227e73 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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-26 21:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26 21:15 [binutils-gdb] aarch64-fbsd-nat: Move definition of debug_regs_probed under HAVE_DBREG John Baldwin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).