From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1936) id 114A738344E5; Thu, 26 May 2022 21:15:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 114A738344E5 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: John Baldwin To: gdb-cvs@sourceware.org Subject: [binutils-gdb] aarch64-fbsd-nat: Move definition of debug_regs_probed under HAVE_DBREG. X-Act-Checkin: binutils-gdb X-Git-Author: John Baldwin X-Git-Refname: refs/heads/master X-Git-Oldrev: 98aa8321ee1bbd4b511992f2bbc4d34450c4a3f9 X-Git-Newrev: b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec Message-Id: <20220526211546.114A738344E5@sourceware.org> Date: Thu, 26 May 2022 21:15:46 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2022 21:15:46 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Db2fdd31b03ef= 01a9a790ecb5d0dc0fea209b49ec commit b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec Author: John Baldwin Date: Thu May 26 14:14:46 2022 -0700 aarch64-fbsd-nat: Move definition of debug_regs_probed under HAVE_DBREG. =20 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: }; =20 static aarch64_fbsd_nat_target the_aarch64_fbsd_nat_target; -bool aarch64_fbsd_nat_target::debug_regs_probed; =20 /* 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 () } =20 #ifdef HAVE_DBREG +bool aarch64_fbsd_nat_target::debug_regs_probed; + /* Set of threads which need to update debug registers on next resume. */ =20 static std::unordered_set aarch64_debug_pending_threads;