summaryrefslogtreecommitdiff
path: root/devel/gdb52
diff options
context:
space:
mode:
authorMark Peek <mp@FreeBSD.org>2003-05-22 02:13:55 +0000
committerMark Peek <mp@FreeBSD.org>2003-05-22 02:13:55 +0000
commitbc1e41f23e9d4605fd22f92c099efc4321a645ab (patch)
treeab635b01e83f6b09390dd18aadade0b566b1f0a7 /devel/gdb52
parentUse files from teTeX 2.0.2 instead of 2.0.1 which is no longer available. (diff)
Use DBREG_DRX instead of accessing the dr members directly. This make gdb
build on i386 5.0 and backwards compatible with 4.X.
Notes
Notes: svn path=/head/; revision=81653
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 */