summaryrefslogtreecommitdiff
path: root/devel/gdb6/files/patch-i386bsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/gdb6/files/patch-i386bsd-nat.c')
-rw-r--r--devel/gdb6/files/patch-i386bsd-nat.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/gdb6/files/patch-i386bsd-nat.c b/devel/gdb6/files/patch-i386bsd-nat.c
new file mode 100644
index 000000000000..a28ce60b09e2
--- /dev/null
+++ b/devel/gdb6/files/patch-i386bsd-nat.c
@@ -0,0 +1,20 @@
+--- gdb/i386bsd-nat.c 2003/01/02 20:22:00 1.1
++++ gdb/i386bsd-nat.c 2003/01/02 20:22:35
+@@ -306,7 +306,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;
+
+@@ -355,7 +355,7 @@
+ return 0;
+ #endif
+
+- return dbregs.dr6;
++ return DBREG_DRX ((&dbregs), 6);
+ }
+
+ #endif /* PT_GETDBREGS */