Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163470470
D35332.id106410.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D35332.id106410.diff
View Options
Index: devel/gdb/Makefile
===================================================================
--- devel/gdb/Makefile
+++ 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}
Index: devel/gdb/files/commit-b2fdd31b03e
===================================================================
--- /dev/null
+++ devel/gdb/files/commit-b2fdd31b03e
@@ -0,0 +1,32 @@
+commit 7b45afa632e0484835a56cc60393d5e118c0f605
+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.
+
+ (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<lwpid_t> aarch64_debug_pending_threads;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 24, 11:45 AM (2 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35444579
Default Alt Text
D35332.id106410.diff (1 KB)
Attached To
Mode
D35332: devel/gdb: Fix build of GDB 12.1 on older aarch64 systems.
Attached
Detach File
Event Timeline
Log In to Comment