freebsd-ports/devel/gdb52/files/patch-gdb_i386bsd-nat.c
Mark Peek bc1e41f23e Use DBREG_DRX instead of accessing the dr members directly. This make gdb
build on i386 5.0 and backwards compatible with 4.X.
2003-05-22 02:13:55 +00:00

20 lines
557 B
C

--- 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 */