diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile --- a/devel/gdb/Makefile +++ b/devel/gdb/Makefile @@ -65,7 +65,8 @@ ${FILESDIR}/commit-414d5848bb2 \ ${FILESDIR}/commit-0a765c1a8e9 \ ${FILESDIR}/commit-f9fbb7636a5 \ - ${FILESDIR}/commit-b7fe5463cf0 + ${FILESDIR}/commit-b7fe5463cf0 \ + ${FILESDIR}/commit-b2fdd31b03e LIB_DEPENDS+= libexpat.so:textproc/expat2 VER= ${DISTVERSION:S/.//g} diff --git a/devel/gdb/files/commit-b2fdd31b03e b/devel/gdb/files/commit-b2fdd31b03e new file mode 100644 --- /dev/null +++ b/devel/gdb/files/commit-b2fdd31b03e @@ -0,0 +1,32 @@ +commit 7b45afa632e0484835a56cc60393d5e118c0f605 +Author: John Baldwin +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. + + (cherry picked from commit b2fdd31b03ef01a9a790ecb5d0dc0fea209b49ec) + +diff --git gdb/aarch64-fbsd-nat.c gdb/aarch64-fbsd-nat.c +index 910bf5bb190..ab6ab36a39a 100644 +--- gdb/aarch64-fbsd-nat.c ++++ gdb/aarch64-fbsd-nat.c +@@ -76,7 +76,6 @@ struct aarch64_fbsd_nat_target final : public fbsd_nat_target + }; + + 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 aarch64_debug_pending_threads;