aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gdb52
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2003-05-22 10:13:55 +0800
committermp <mp@FreeBSD.org>2003-05-22 10:13:55 +0800
commita60e3c9cff6f126444b24640f7a3ff49dc6f0d8d (patch)
tree7d925823d11a2d75510dd162cdf5584226286074 /devel/gdb52
parent1a1d017b98bc934edb1533cccfcd2e9000cbcdbf (diff)
downloadfreebsd-ports-gnome-a60e3c9cff6f126444b24640f7a3ff49dc6f0d8d.tar.gz
freebsd-ports-gnome-a60e3c9cff6f126444b24640f7a3ff49dc6f0d8d.tar.zst
freebsd-ports-gnome-a60e3c9cff6f126444b24640f7a3ff49dc6f0d8d.zip
Use DBREG_DRX instead of accessing the dr members directly. This make gdb
build on i386 5.0 and backwards compatible with 4.X.
Diffstat (limited to 'devel/gdb52')
-rw-r--r--devel/gdb52/files/patch-gdb_i386bsd-nat.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/gdb52/files/patch-gdb_i386bsd-nat.c b/devel/gdb52/files/patch-gdb_i386bsd-nat.c
new file mode 100644
index 000000000000..a6f7c0ec5524
--- /dev/null
+++ b/devel/gdb52/files/patch-gdb_i386bsd-nat.c
@@ -0,0 +1,20 @@
+--- gdb/i386bsd-nat.c 2003/05/19 07:22:00 1.1
++++ gdb/i386bsd-nat.c 2003/05/19 07:22:35
+@@ -305,7 +305,7 @@
+ /* For some mysterious reason, some of the reserved bits in the
+ debug control register get set. Mask these off, otherwise the
+ ptrace call below will fail. */
+- dbregs.dr7 &= ~(0x0000fc00);
++ DBREG_DRX ((&dbregs), 7) = ~(0x0000fc00);
+
+ DBREG_DRX ((&dbregs), regnum) = value;
+
+@@ -354,7 +354,7 @@
+ return 0;
+ #endif
+
+- return dbregs.dr6;
++ return DBREG_DRX ((&dbregs), 6);
+ }
+
+ #endif /* PT_GETDBREGS */